From 2b184c5087e2982be723b6a29b2093428f974539 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Sun, 26 Dec 1999 16:34:53 +0000 Subject: [PATCH] Fix tab completion mounts (like /cdrom/) Submitted by: Martin Blapp --- sbin/mount/mount.c | 1 + sbin/mount_ifs/mount.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 8510db5d0132..14b56c926f69 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/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", diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index 8510db5d0132..14b56c926f69 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",