From de5fd23f25653b0bb240e7c3a32abcc9bf2997d2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 14 Aug 2005 19:26:14 +0000 Subject: 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.) --- util-linux/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux/mount.c') 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; -- cgit v1.2.3