freebsd-dev/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 The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
newsyslog.8 Have -n imply -r, since dry-run mode obviously doesn't require root 2013-01-03 16:12:48 +00:00
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 mdoc: fix mandoc "Oc breaks Op" warning. 2012-06-09 09:54:07 +00:00
pathnames.h Add xz(1) support to newsyslog. 2011-01-31 10:57:54 +00:00
ptimes.c