svn commit: trunk/busybox/util-linux

landley at busybox.net landley at busybox.net
Tue Aug 8 00:47:18 UTC 2006


Author: landley
Date: 2006-08-07 17:47:17 -0700 (Mon, 07 Aug 2006)
New Revision: 15788

Log:
Using lstat() instead of stat() means that attempting to loopback mount
a symlink doesn't work.


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


Changeset:
Modified: trunk/busybox/util-linux/mount.c
===================================================================
--- trunk/busybox/util-linux/mount.c	2006-08-06 20:41:11 UTC (rev 15787)
+++ trunk/busybox/util-linux/mount.c	2006-08-08 00:47:17 UTC (rev 15788)
@@ -285,7 +285,7 @@
 	// Look at the file.  (Not found isn't a failure for remount, or for
 	// a synthetic filesystem like proc or sysfs.)
 
-	if (lstat(mp->mnt_fsname, &st));
+	if (stat(mp->mnt_fsname, &st));
 	else if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
 		// Do we need to allocate a loopback device for it?
 




More information about the busybox-cvs mailing list