git: newsyslog - Fix for NFS.

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


commit 700a56160b8be9e4ec45eccd1d0c65456d007e93
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Mon Jan 29 00:48:56 2018 +0100

    newsyslog - Fix for NFS.
    
    Some filesystems (NFS in particular) do not fill out
    the d_type field when returning directory entries through
    readdir(3). In this case we need to obtain the file type
    ourselves; otherwise newsyslog -t will not be able to
    find archived log files and will fail to both delete old
    log files and to do interval-based rotations properly.
    
    Obtained-from: FreeBSD (r250545)

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/700a56160b8be9e4ec45eccd1d0c65456d007e93


-- 
DragonFly BSD source repository



More information about the Commits mailing list