diff options
| author | Rob Landley <rob@landley.net> | 2005-08-14 19:26:14 +0000 |
|---|---|---|
| committer | Rob Landley <rob@landley.net> | 2005-08-14 19:26:14 +0000 |
| commit | de5fd23f25653b0bb240e7c3a32abcc9bf2997d2 (patch) | |
| tree | 74738eb7c8a2a39a0b0d431337cdaa2fb5e582a7 | |
| parent | 23246f39ed19b6951c48396e239c11cef073f142 (diff) | |
| download | busybox-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.)
| -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 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; |
