Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2005 07:58:51 +0100 (CET)
From:      Andre Albsmeier <andre.albsmeier@siemens.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/76697: newsyslog keeps one more archive files than documented
Message-ID:  <200501260658.j0Q6wpCe057787@curry.mchp.siemens.de>
Resent-Message-ID: <200501260700.j0Q70hTO046337@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76697
>Category:       bin
>Synopsis:       newsyslog keeps one more archive files than documented
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 26 07:00:42 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andre Albsmeier
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:

	verified on 4.10-STABLE and 5.2.1-RELEASE but probably
	all FreeBSD versions are affected

>Description:

	man newsyslog.conf (on a FreeBSD 4.10-STABLE box) says:

     count   Specify the maximum number of archive files which may exist.
             This does not consider the current log file.

	However, it seems that newsyslog actually keeps count+1
	archive files.

>How-To-Repeat:

	On a machine which had been running for at least one
	week and which has an unmodifed /etc/newsyslog.conf do
	(only checked on 4.10-STABLE):

	egrep 'count|/var/log/messages' /etc/newsyslog.conf
	ls -l /var/log/messages.* | wc -l

	and compare the output of the two commands :-).

>Fix:

	Either fix the manpage or the code :-)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501260658.j0Q6wpCe057787>