summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-08-14 19:26:14 +0000
committerRob Landley <rob@landley.net>2005-08-14 19:26:14 +0000
commitde5fd23f25653b0bb240e7c3a32abcc9bf2997d2 (patch)
tree74738eb7c8a2a39a0b0d431337cdaa2fb5e582a7 /util-linux/mount.c
parent23246f39ed19b6951c48396e239c11cef073f142 (diff)
downloadbusybox-w32-de5fd23f25653b0bb240e7c3a32abcc9bf2997d2.tar.gz
busybox-w32-de5fd23f25653b0bb240e7c3a32abcc9bf2997d2.tar.bz2
busybox-w32-de5fd23f25653b0bb240e7c3a32abcc9bf2997d2.zip
If we goto singlemount, do _not_ try to continue through the loop we jumped
into. (That means "mount -t ext2 /dev/thingy thingy" would segfault if it failed instead of giving us an error message.)
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index c3c13bae4..35866ea76 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -342,7 +342,7 @@ mount_it_now:
342 flags|=MS_RDONLY; 342 flags|=MS_RDONLY;
343 } 343 }
344 } 344 }
345 if(!rc) break; 345 if(!rc || !f) break;
346 } 346 }
347 if(f) fclose(f); 347 if(f) fclose(f);
348 if(!f || !rc) break; 348 if(!f || !rc) break;