From 01a9bce5ee48ad313fdde5f32ad5c24065190f1d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 7 Jan 2004 05:37:56 +0000 Subject: [PATCH] Allow trailing slashes for MNT_UPDATE case (mount -u), too. PR: bin/59144 Submitted by: Stefan Farfeleder --- sbin/mount/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 7806ecc1f202..e3f7bf21173b 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",