From owner-freebsd-bugs Sat May 25 21:10:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 853AA37B40B for ; Sat, 25 May 2002 21:10:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4Q4A2c34649; Sat, 25 May 2002 21:10:02 -0700 (PDT) (envelope-from gnats) Received: from mail.michaelchaney.com (ns2.michaelchaney.com [207.65.84.67]) by hub.freebsd.org (Postfix) with ESMTP id A4D9B37B405 for ; Sat, 25 May 2002 21:08:42 -0700 (PDT) Received: from update by mail.michaelchaney.com with local (Exim 3.36 #2 (FreeBSD)) id 17BpJv-0006uo-00; Sat, 25 May 2002 23:07:51 -0500 Message-Id: Date: Sat, 25 May 2002 23:07:51 -0500 From: "Brandon D.Valentine" Reply-To: "Brandon D.Valentine" To: FreeBSD-gnats-submit@FreeBSD.org Cc: bugs@geekpunk.net X-Send-Pr-Version: 3.113 Subject: bin/38558: newsyslog disobeys -F flag Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38558 >Category: bin >Synopsis: newsyslog disobeys -F flag >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 25 21:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Brandon D. Valentine >Release: FreeBSD 4.5-RELEASE-p2 i386 >Organization: N/A >Environment: System: FreeBSD leto 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #1: Fri Apr 26 01:50:45 CDT 2002 root@leto:/export/obj/export/src/sys/LETO_DEBUG i386 >Description: /usr/sbin/newsyslog fails to obey the -F flag to force log trimming. According to newsyslog(8): -F Force newsyslog to trim the logs, even if the trim conditions have not been met. This option is useful for diagnosing system problems by providing you with fresh logs that contain only the problems. >How-To-Repeat: [bandix@leto ~]% cat .newsyslog.conf # configuration file for newsyslog # # logfilename [owner:group] mode count size when [ZJB] # [/pid_file] [sig_num] /home/bandix/mail/caught-spam 644 6 * $W5D23Z [bandix@leto ~]% newsyslog -Frv -f $HOME/.newsyslog.conf -a ../mail-archive/ $HOME/mail/caught-spam /home/bandix/mail/caught-spam <6Z>: --> will trim at Fri May 31 23:00:00 2002 >Fix: The workaround is to manually edit newsyslog.conf and make the file you wish you rotate immediately up for rotation. This is an undesirable solution. The -F flag should be available for adminstrators and developers' debugging needs. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message