summaryrefslogtreecommitdiffstats
path: root/daemon/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/sync.c')
-rw-r--r--daemon/sync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/sync.c b/daemon/sync.c
index 25c7de89..8f5a461b 100644
--- a/daemon/sync.c
+++ b/daemon/sync.c
@@ -51,9 +51,10 @@ do_sync (void)
int
do_internal_autosync (void)
{
- int r;
+ int r = 0;
- r = do_umount_all ();
+ if (autosync_umount)
+ r = do_umount_all ();
sync_disks ();