summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index e0a2e29..4777e47 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -327,8 +327,11 @@ mount_it_now:
}
if(!rc || !f) break;
}
- if(f) fclose(f);
- if(!f || !rc) break;
+ if(!f) break;
+ fclose(f);
+ // goto mount_it_now with -a can jump past the initialization
+ f=0;
+ if(!rc) break;
}
/* If the mount was successful, and we're maintaining an old-style