usr.sbin/makefs/hammer2: Trim redundant / in input path
authorTomohiro Kusumi <tkusumi@netbsd.org>
Mon, 19 Jun 2023 04:43:43 +0000 (21:43 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Mon, 19 Jun 2023 10:51:24 +0000 (03:51 -0700)
commit6857f034386455e55e5ca87b75b84db5fcc3522e
tree94686f5a68d632bb2c9f59aa86318e6b5c89ade1
parent70e962f72e588a76ccc2d1efabbe00ff5a7203a5
usr.sbin/makefs/hammer2: Trim redundant / in input path

HAMMER2 ioctl commands in makefs(8) that need to resolve input path
components fail if the path contains consecutive or leading or tailing /.
Trim these /'s, instead of just trailing ones.
usr.sbin/makefs/hammer2.c