Module Name: src
Committed By: bouyer
Date: Sat Sep 5 12:58:07 UTC 2009
Modified Files:
src/usr.bin/newsyslog [netbsd-5]: newsyslog.c
Log Message:
Pull up following revision(s) (requested by manu in ticket #925):
usr.bin/newsyslog/newsyslog.c: revision 1.59
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.53.10.1 -r1.53.10.2 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.53.10.1 src/usr.bin/newsyslog/newsyslog.c:1.53.10.2
--- src/usr.bin/newsyslog/newsyslog.c:1.53.10.1 Tue Feb 24 02:47:30 2009
+++ src/usr.bin/newsyslog/newsyslog.c Sat Sep 5 12:58:07 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: newsyslog.c,v 1.53.10.1 2009/02/24 02:47:30 snj Exp $ */
+/* $NetBSD: newsyslog.c,v 1.53.10.2 2009/09/05 12:58:07 bouyer Exp $ */
/*
* Copyright (c) 1999, 2000 Andrew Doran <[email protected]>
@@ -55,7 +55,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: newsyslog.c,v 1.53.10.1 2009/02/24 02:47:30 snj Exp $");
+__RCSID("$NetBSD: newsyslog.c,v 1.53.10.2 2009/09/05 12:58:07 bouyer Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -246,6 +246,7 @@
rv = -1;
line = NULL;
+ ziptype = 0;
/* Place the white-space separated fields into an array. */
do {