Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/newsyslog Reset ziptype on each line. Failure to do ...
details: https://anonhg.NetBSD.org/src/rev/d51fef2d65d4
branches: trunk
changeset: 746841:d51fef2d65d4
user: manu <manu%NetBSD.org@localhost>
date: Fri Aug 21 08:20:19 2009 +0000
description:
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 * -
diffstat:
usr.bin/newsyslog/newsyslog.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 234bbcc48c87 -r d51fef2d65d4 usr.bin/newsyslog/newsyslog.c
--- a/usr.bin/newsyslog/newsyslog.c Fri Aug 21 06:54:01 2009 +0000
+++ b/usr.bin/newsyslog/newsyslog.c Fri Aug 21 08:20:19 2009 +0000
@@ -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 <ad%NetBSD.org@localhost>
@@ -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 {
Home |
Main Index |
Thread Index |
Old Index