summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-10-14 06:55:28 +0000
committerRoland McGrath <roland@gnu.org>1999-10-14 06:55:28 +0000
commit9e84be3cabcdd988f4c4af9f0794d0ba2d6929c1 (patch)
treebc03b55e8c2a1f818b863b3496a840dc3ad6c7d9 /libdiskfs
parent675031ceb6fdc86604935138cfd49b28a3626edf (diff)
1999-10-14 Roland McGrath <roland@baalperazim.frob.com>
* opts-std-startup.c (TOGGLE): Fix `off' case. Reported by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/opts-std-startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/opts-std-startup.c b/libdiskfs/opts-std-startup.c
index 24d403a7..9d0c1d90 100644
--- a/libdiskfs/opts-std-startup.c
+++ b/libdiskfs/opts-std-startup.c
@@ -69,7 +69,7 @@ parse_startup_opt (int opt, char *arg, struct argp_state *state)
{
#define TOGGLE(var, on, off) \
case on: var = 1; break; \
- case off: var = 1; break;
+ case off: var = 0; break;
TOGGLE (diskfs_readonly, 'r', 'w');
TOGGLE (_diskfs_nosuid, 'S', OPT_SUID_OK);
TOGGLE (_diskfs_noexec, 'E', OPT_EXEC_OK);