newsyslog - Update mtime after archiving.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 28 Jan 2018 20:40:00 +0000 (21:40 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 28 Jan 2018 20:40:00 +0000 (21:40 +0100)
commit31c425dce6d1e7116746b60ba5eca7892e032728
tree860eec85aed23e2b45f306c7b630e883799759a5
parent6bcfe5bb129b31a643839c38eeebd9abb7549caa
newsyslog - Update mtime after archiving.

Make sure to update the mtime of a logfile after archiving it. This
ensures that the next rotation happens at the correct time when using
interval-based rotations.

Obtained-from: FreeBSD (r244997)
usr.sbin/newsyslog/newsyslog.c