summaryrefslogtreecommitdiff
path: root/libdiskfs/opts-std-runtime.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-07-14 22:51:51 +0000
committerMiles Bader <miles@gnu.org>1997-07-14 22:51:51 +0000
commit8e8beac9c239c822435c86b7ca3f8d126264df21 (patch)
treece520faeda6909daabfc2d64b0c869a579495196 /libdiskfs/opts-std-runtime.c
parentd8b6843aca3286d966d414dcaca7f3673f415970 (diff)
(parse_opt):
Turn off synchronous mode when setting a sync interval.
Diffstat (limited to 'libdiskfs/opts-std-runtime.c')
-rw-r--r--libdiskfs/opts-std-runtime.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/opts-std-runtime.c b/libdiskfs/opts-std-runtime.c
index 47cebeb7..41df2111 100644
--- a/libdiskfs/opts-std-runtime.c
+++ b/libdiskfs/opts-std-runtime.c
@@ -1,6 +1,6 @@
/* Parse standard run-time options
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -89,7 +89,10 @@ parse_opt (int opt, char *arg, struct argp_state *state)
case 'n': h->sync_interval = 0; h->sync = 0; break;
case 's':
if (arg)
- h->sync_interval = atoi (arg);
+ {
+ h->sync = 0;
+ h->sync_interval = atoi (arg);
+ }
else
h->sync = 1;
break;