From: Rob Landley Date: Sun, 14 Aug 2005 19:26:14 +0000 (-0000) Subject: If we goto singlemount, do _not_ try to continue through the loop we jumped X-Git-Tag: 1_1_0~823 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=de5fd23f25653b0bb240e7c3a32abcc9bf2997d2;p=oweals%2Fbusybox.git 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.) --- 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: flags|=MS_RDONLY; } } - if(!rc) break; + if(!rc || !f) break; } if(f) fclose(f); if(!f || !rc) break;