diff options
author | dg <dg@FreeBSD.org> | 1995-05-12 23:39:15 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-05-12 23:39:15 +0000 |
commit | 80e3b4e2e240fb9e5122342a331a95f9588832c7 (patch) | |
tree | 844ccdf7ba058709be8b5f5a60b694aaaa09e760 /sbin/mount_ifs | |
parent | e6b57c33e6a9fb351159f1716b81f1a2cbc3102e (diff) | |
download | FreeBSD-src-80e3b4e2e240fb9e5122342a331a95f9588832c7.zip FreeBSD-src-80e3b4e2e240fb9e5122342a331a95f9588832c7.tar.gz |
Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptable
options for UFS (which fixes another bug).
Diffstat (limited to 'sbin/mount_ifs')
-rw-r--r-- | sbin/mount_ifs/mntopts.h | 2 | ||||
-rw-r--r-- | sbin/mount_ifs/mount_ufs.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mount_ifs/mntopts.h b/sbin/mount_ifs/mntopts.h index ba792fa..0e7ab24 100644 --- a/sbin/mount_ifs/mntopts.h +++ b/sbin/mount_ifs/mntopts.h @@ -54,7 +54,7 @@ struct mntopt { #define MOPT_GQUOTA { "groupquota", 0, 0, 0 } /* Control flags. */ -#define MOPT_FORCE { "force", 1, MNT_FORCE, 0 } +#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 } #define MOPT_UPDATE { "update", 0, MNT_UPDATE, 0 } /* Support for old-style "ro", "rw" flags. */ diff --git a/sbin/mount_ifs/mount_ufs.c b/sbin/mount_ifs/mount_ufs.c index 48be222..500a977 100644 --- a/sbin/mount_ifs/mount_ufs.c +++ b/sbin/mount_ifs/mount_ufs.c @@ -59,6 +59,7 @@ static struct mntopt mopts[] = { MOPT_STDOPTS, MOPT_ASYNC, MOPT_SYNC, + MOPT_FORCE, MOPT_UPDATE, MOPT_UQUOTA, MOPT_GQUOTA, |