diff options
author | bde <bde@FreeBSD.org> | 1999-03-16 22:26:51 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-03-16 22:26:51 +0000 |
commit | 5558fa14f4fae8829840dda347623e02531ba966 (patch) | |
tree | 003e3834cc31b88655f6b9a4fcb6c7a11c42ae8e /sbin/mount_ifs | |
parent | 0ba37a221d954cd36b3c1c5bd36db71804d4582c (diff) | |
download | FreeBSD-src-5558fa14f4fae8829840dda347623e02531ba966.zip FreeBSD-src-5558fa14f4fae8829840dda347623e02531ba966.tar.gz |
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>
Diffstat (limited to 'sbin/mount_ifs')
-rw-r--r-- | sbin/mount_ifs/mount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index 4939444..87ae109 100644 --- a/sbin/mount_ifs/mount.c +++ b/sbin/mount_ifs/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, |