git: newsyslog - Clean up basename/dirname calls

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


commit 9a304aedf5e3cba3ab8ae1c47edacd0cf9819e7a
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Mon Jan 29 01:36:51 2018 +0100

    newsyslog - Clean up basename/dirname calls
    
    Pull copies of the input pathname string before calling basename() and
    dirname() to make this comply to POSIX. Free these copies at the end of
    this function. While there, remove the duplication of the 's' ->
    'logfname' string. There is no need for this.
    
    Obtained-from: FreeBSD (r303449)

Summary of changes:
 usr.sbin/newsyslog/newsyslog.c | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9a304aedf5e3cba3ab8ae1c47edacd0cf9819e7a


-- 
DragonFly BSD source repository



More information about the Commits mailing list