Module Name: src Committed By: manu Date: Fri Aug 21 08:20:19 UTC 2009
Modified Files: src/usr.bin/newsyslog: newsyslog.c Log Message: Reset ziptype on each line. Failure to do this caused any log file to be compressed if it was listed after a line using Z or J flag. For instance, we compressed log2 with the config file below: /var/log/log1 600 5 100 * Z /var/log/log2 600 7 100 * - To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/usr.bin/newsyslog/newsyslog.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/newsyslog/newsyslog.c diff -u src/usr.bin/newsyslog/newsyslog.c:1.58 src/usr.bin/newsyslog/newsyslog.c:1.59 --- src/usr.bin/newsyslog/newsyslog.c:1.58 Sat Jun 20 19:34:19 2009 +++ src/usr.bin/newsyslog/newsyslog.c Fri Aug 21 08:20:19 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: newsyslog.c,v 1.58 2009/06/20 19:34:19 christos Exp $ */ +/* $NetBSD: newsyslog.c,v 1.59 2009/08/21 08:20:19 manu Exp $ */ /* * Copyright (c) 1999, 2000 Andrew Doran <a...@netbsd.org> @@ -55,7 +55,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: newsyslog.c,v 1.58 2009/06/20 19:34:19 christos Exp $"); +__RCSID("$NetBSD: newsyslog.c,v 1.59 2009/08/21 08:20:19 manu Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -244,6 +244,7 @@ rv = -1; line = NULL; + ziptype = 0; /* Place the white-space separated fields into an array. */ do {