diff options
author | Rob Landley | 2005-08-14 19:26:14 +0000 |
---|---|---|
committer | Rob Landley | 2005-08-14 19:26:14 +0000 |
commit | de5fd23f25653b0bb240e7c3a32abcc9bf2997d2 (patch) | |
tree | 74738eb7c8a2a39a0b0d431337cdaa2fb5e582a7 /util-linux/mount.c | |
parent | 23246f39ed19b6951c48396e239c11cef073f142 (diff) | |
download | busybox-de5fd23f25653b0bb240e7c3a32abcc9bf2997d2.zip busybox-de5fd23f25653b0bb240e7c3a32abcc9bf2997d2.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index c3c13ba..35866ea 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; |