1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/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 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
ptimes.c