bin/166448: [patch] newsyslog(8): newsyslog -t fails to find previous rotated log

Marco Steinbach coco at executive-computing.de
Wed May 23 20:10:09 UTC 2012


The following reply was made to PR bin/166448; it has been noted by GNATS.

From: Marco Steinbach <coco at executive-computing.de>
To: bug-followup at FreeBSD.org
Cc: eugen at grosbein.pp.ru
Subject: Re: bin/166448: [patch] newsyslog(8): newsyslog -t fails to find
 previous rotated log
Date: Wed, 23 May 2012 21:56:51 +0200

 I'm running into this, also.  Logrotation is done upon every invocation 
 of newsyslog(8), if 'when' is given as purely numerical hour interval, 
 and an alternate timeformat is used.
 
 E.g.:
 
 p90a1# newsyslog -t %Y%m%d_%H%M%S
 p90a1# ls -1 /var/log/sendmail.st.20*
 /var/log/sendmail.st.20120523_201321
 
 p90a1# newsyslog -t %Y%m%d_%H%M%S
 p90a1# ls -1 /var/log/sendmail.st.20*
 /var/log/sendmail.st.20120523_201321
 /var/log/sendmail.st.20120523_201343
 
 I've been successfuly using Eugenes patch against newsyslog(8) for about 
 24 hours now on 8.3 and 9.0 (second hunk needs to be moved for patching 
 9) i386/amd64 systems, tossing quite some logs around with and without 
 using alternate timeformats.
 
 
 MfG CoCo


More information about the freebsd-bugs mailing list