summaryrefslogtreecommitdiffstats
path: root/sbin/mount_ifs
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-12-26 16:34:53 +0000
committereivind <eivind@FreeBSD.org>1999-12-26 16:34:53 +0000
commit35e8c42139da2a5b1017735c3284081facad126a (patch)
tree800bd51082aec2932a213fe335d6d71c9937b9d2 /sbin/mount_ifs
parent309905643392ff30130047951454fe281e4a9bc3 (diff)
downloadFreeBSD-src-35e8c42139da2a5b1017735c3284081facad126a.zip
FreeBSD-src-35e8c42139da2a5b1017735c3284081facad126a.tar.gz
Fix tab completion mounts (like /cdrom/)
Submitted by: Martin Blapp <mb@imp.ch>
Diffstat (limited to 'sbin/mount_ifs')
-rw-r--r--sbin/mount_ifs/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c
index 8510db5..14b56c9 100644
--- a/sbin/mount_ifs/mount.c
+++ b/sbin/mount_ifs/mount.c
@@ -265,6 +265,7 @@ main(argc, argv)
mntbuf->f_mntonname, init_flags, options, 0);
break;
}
+ rmslashes(*argv, *argv);
if ((fs = getfsfile(*argv)) == NULL &&
(fs = getfsspec(*argv)) == NULL)
errx(1, "%s: unknown special file or file system",
OpenPOWER on IntegriCloud