[BusyBox-cvs] svn commit: trunk/busybox/util-linux

landley at busybox.net landley at busybox.net
Sun Aug 14 19:26:15 UTC 2005


Author: landley
Date: 2005-08-14 13:26:14 -0600 (Sun, 14 Aug 2005)
New Revision: 11150

Log:
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.)


Modified:
   trunk/busybox/util-linux/mount.c


Changeset:
Modified: trunk/busybox/util-linux/mount.c
===================================================================
--- trunk/busybox/util-linux/mount.c	2005-08-14 19:17:31 UTC (rev 11149)
+++ trunk/busybox/util-linux/mount.c	2005-08-14 19:26:14 UTC (rev 11150)
@@ -342,7 +342,7 @@
 						flags|=MS_RDONLY;
 					}
 				}
-				if(!rc) break;
+				if(!rc || !f) break;
 			}
 			if(f) fclose(f);
 			if(!f || !rc) break;




More information about the busybox-cvs mailing list