git: sbin/hammer: Return -1 if readlink(2) failed

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 8 10:28:37 PDT 2016


commit 40649c3e1265748cc5756251898a317c1f124999
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Sep 8 21:24:10 2016 +0900

    sbin/hammer: Return -1 if readlink(2) failed
    
    If the path is a link and readlink(2) failed, it shouldn't continue
    with empty buf[].

Summary of changes:
 sbin/hammer/cmd_pfs.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/40649c3e1265748cc5756251898a317c1f124999


-- 
DragonFly BSD source repository


More information about the Commits mailing list