git: newsyslog - Fix an old bug in newsyslog

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Sun Jan 28 17:16:11 PST 2018


commit 6b053813114f6f2145bab34925c977658184b234
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Sun Jan 28 19:21:48 2018 +0100

    newsyslog - Fix an old bug in newsyslog
    
    We kept one log file more than was requested in newsyslog.conf.
    This was only the case using the non-time based filenames (.0, .1,
    .2 etc.).
    
    The change also makes newsyslog clean clean up the old extra logfile
    so users don't end up with a single stale logfile which won't be
    rotated out.
    
    This change also cleans up some code a bit to avoid more copy / paste
    code and removes some old copy / paste code in the process.
    
    Obtained-from: FreeBSD (r220926)

Summary of changes:
 usr.sbin/newsyslog/newsyslog.c | 89 +++++++++++++++++++++++++++---------------
 1 file changed, 58 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6b053813114f6f2145bab34925c977658184b234


-- 
DragonFly BSD source repository



More information about the Commits mailing list