summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2004-01-07 05:37:56 +0000
committeranholt <anholt@FreeBSD.org>2004-01-07 05:37:56 +0000
commit7cdd2d881292531d9f6cbc7e372f934435db4a92 (patch)
tree941fa1165fceb72bd992885e80f77bbea1dee43a
parent784e993ea23633224ab80274724a9794967dee63 (diff)
downloadFreeBSD-src-7cdd2d881292531d9f6cbc7e372f934435db4a92.zip
FreeBSD-src-7cdd2d881292531d9f6cbc7e372f934435db4a92.tar.gz
Allow trailing slashes for MNT_UPDATE case (mount -u), too.
PR: bin/59144 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
-rw-r--r--sbin/mount/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 7806ecc..e3f7bf2 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -234,6 +234,7 @@ main(argc, argv)
if (vfslist != NULL)
usage();
+ rmslashes(*argv, *argv);
if (init_flags & MNT_UPDATE) {
mntfromname = NULL;
have_fstab = 0;
@@ -272,7 +273,6 @@ 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