]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r248776:
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 May 2013 20:56:07 +0000 (20:56 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 May 2013 20:56:07 +0000 (20:56 +0000)
commit48499987b61aafb73748b805a49a221184cf78a2
treec18b59c7006dc2d7cefbccb57167494f1bd86d32
parenta6b4f7cadf7917267cbee4354d4662df6f0c3a47
MFC r248776:
  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.

Approved by: emaste

git-svn-id: svn://svn.freebsd.org/base/stable/8@250479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/newsyslog/newsyslog.c