git: newsyslog - Fix interval-based rotations when the -t flag is used
Antonio Huete Jimenez
tuxillo at crater.dragonflybsd.org
Sun Jan 28 17:16:13 PST 2018
commit 586d844997de1f27fe6ec10e12b2e714d0bb4880
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date: Mon Jan 29 00:22:57 2018 +0100
newsyslog - 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.
Obtained-from: FreeBSD (r248776)
Summary of changes:
usr.sbin/newsyslog/newsyslog.c | 192 ++++++++++++++++++++++++++++-------------
1 file changed, 134 insertions(+), 58 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/586d844997de1f27fe6ec10e12b2e714d0bb4880
--
DragonFly BSD source repository
More information about the Commits
mailing list