freebsd-skq/usr.sbin/newsyslog
Mark Johnston 91ba008fc5 Fix interval-based rotations when the -t flag is used. In this case, find
the most-recently archived logfile and use its mtime to determine whether
or not to rotate, as in the non-timestamped case.

Previously we would just try to use the mtime of <logfile>.0, which always
results in a rotation since it generally doesn't exist in the -t case.

PR:		bin/166448
Approved by:	emaste (co-mentor)
Tested by:	Marco Steinbach <coco executive-computing.de>
MFC after:	2 weeks
2013-03-26 23:11:30 +00:00
..
extern.h
Makefile
newsyslog.8
newsyslog.c Fix interval-based rotations when the -t flag is used. In this case, find 2013-03-26 23:11:30 +00:00
newsyslog.conf.5
pathnames.h
ptimes.c