aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-08-14 19:26:14 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-08-14 19:26:14 +0000
commit7f67b220eff9fb3f88188a4fdc3e419349d34c14 (patch)
tree74738eb7c8a2a39a0b0d431337cdaa2fb5e582a7 /util-linux/mount.c
parent2d072c242295f3e6e775b95a8aee1a60fb4d849b (diff)
downloadbusybox-w32-7f67b220eff9fb3f88188a4fdc3e419349d34c14.tar.gz
busybox-w32-7f67b220eff9fb3f88188a4fdc3e419349d34c14.tar.bz2
busybox-w32-7f67b220eff9fb3f88188a4fdc3e419349d34c14.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.) git-svn-id: svn://busybox.net/trunk/busybox@11150 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-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;