aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mount.c')
-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 e0a2e2930..4777e470b 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