aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-03-16 22:26:51 +0000
committerBruce Evans <bde@FreeBSD.org>1999-03-16 22:26:51 +0000
commit98201b0c60519aca57aa759d3209f0f467a89151 (patch)
tree4ef1f18a98b8cba96e3719fab715edacfa5b653f /sbin/mount
parentdbffaab09bee80c5fd0bce95d61b0831f0ef3a84 (diff)
downloadsrc-98201b0c60519aca57aa759d3209f0f467a89151.tar.gz
src-98201b0c60519aca57aa759d3209f0f467a89151.zip
Fixed `mount -a -u ...'. Rev.1.19 broke this by trying too hard to
avoid mounting filesystems multiple times. PR: 10572 Submitted by: Cy Schubert <cy@cschuber.net.gov.bc.ca>
Notes
Notes: svn path=/head/; revision=44811
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 493944451690..87ae109b1256 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: mount.c,v 1.28 1998/07/06 07:12:38 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -192,7 +192,8 @@ main(argc, argv)
continue;
if (hasopt(fs->fs_mntops, "noauto"))
continue;
- if (ismounted(fs, mntbuf, mntsize))
+ if (!(init_flags & MNT_UPDATE) &&
+ ismounted(fs, mntbuf, mntsize))
continue;
if (mountfs(fs->fs_vfstype, fs->fs_spec,
fs->fs_file, init_flags, options,