From owner-freebsd-bugs@FreeBSD.ORG Wed May 23 20:10:09 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BEFB106564A for ; Wed, 23 May 2012 20:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 167618FC0A for ; Wed, 23 May 2012 20:10:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4NKA8JC027814 for ; Wed, 23 May 2012 20:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4NKA8bT027813; Wed, 23 May 2012 20:10:08 GMT (envelope-from gnats) Date: Wed, 23 May 2012 20:10:08 GMT Message-Id: <201205232010.q4NKA8bT027813@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Marco Steinbach Cc: Subject: Re: bin/166448: [patch] newsyslog(8): newsyslog -t fails to find previous rotated log X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marco Steinbach List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2012 20:10:09 -0000 The following reply was made to PR bin/166448; it has been noted by GNATS. From: Marco Steinbach To: bug-followup@FreeBSD.org Cc: eugen@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