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.)
This commit is contained in:
Rob Landley 2005-08-14 19:26:14 +00:00
parent 23246f39ed
commit de5fd23f25

View File

@ -342,7 +342,7 @@ mount_it_now:
flags|=MS_RDONLY; flags|=MS_RDONLY;
} }
} }
if(!rc) break; if(!rc || !f) break;
} }
if(f) fclose(f); if(f) fclose(f);
if(!f || !rc) break; if(!f || !rc) break;