bin/76697: newsyslog keeps one more archive files than documented

Andre Albsmeier andre.albsmeier at siemens.com
Tue Jan 25 23:00:43 PST 2005


>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:


More information about the freebsd-bugs mailing list