git: sbin/hammer: Make getdir() support more than 1 trailing /

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Oct 6 14:28:58 PDT 2016


commit 61940690b8e9b282172b3b81376e087f4643db0a
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Oct 6 05:10:37 2016 +0900

    sbin/hammer: Make getdir() support more than 1 trailing /
    
    Also add a comment that tells difference from dirname(3) with
    trailing /, which was true prior to this commit.
    
    Nothing changes from the way commands use this function.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/61940690b8e9b282172b3b81376e087f4643db0a


-- 
DragonFly BSD source repository



More information about the Commits mailing list