Author: jajcus                       Date: Tue Oct 17 09:25:39 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- patch to fix 'size' directive, which was treated as 'minsize'

---- Files affected:
SOURCES:
   logrotate-size.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/logrotate-size.patch
diff -u /dev/null SOURCES/logrotate-size.patch:1.1
--- /dev/null   Tue Oct 17 11:25:39 2006
+++ SOURCES/logrotate-size.patch        Tue Oct 17 11:25:34 2006
@@ -0,0 +1,16 @@
+diff -dur -x '*~' logrotate-3.7.4.orig/config.c logrotate-3.7.4/config.c
+--- logrotate-3.7.4.orig/config.c      2006-07-24 12:08:04.000000000 +0000
++++ logrotate-3.7.4/config.c   2006-10-17 08:42:12.000000000 +0000
+@@ -617,10 +617,10 @@
+                       return 1;
+                   }
+ 
+-                  if (!strcmp(opt, "size")) {
++                  if (opt[0] == 's') { /* size */
+                       newlog->criterium = ROT_SIZE;
+                       newlog->threshhold = size;
+-                  } else
++                  } else /* minsize */
+                       newlog->minsize = size;
+ 
+                   *endtag = oldchar, start = endtag;
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to