sbin/hammer: Make getdir() support more than 1 trailing /
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 5 Oct 2016 20:10:37 +0000 (05:10 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 6 Oct 2016 20:33:10 +0000 (05:33 +0900)
commit61940690b8e9b282172b3b81376e087f4643db0a
tree5cb4dac3f055fa839ef4f76a806cae23d57a87a2
parent143313913f4251064142972c3a6c8b94660b4fab
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.
sbin/hammer/cmd_pfs.c