summaryrefslogtreecommitdiff
path: root/libdiskfs/opts-std-startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/opts-std-startup.c')
-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);