aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-08 00:47:17 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-08 00:47:17 +0000
commit84b02c0707906148ccf2dde6cfc4d62b2e65077c (patch)
tree5511d46389ec475040935780417542615f5e98b9
parent7a52352aaad333427d85b6e436df4bcface1d1d4 (diff)
downloadbusybox-w32-84b02c0707906148ccf2dde6cfc4d62b2e65077c.tar.gz
busybox-w32-84b02c0707906148ccf2dde6cfc4d62b2e65077c.tar.bz2
busybox-w32-84b02c0707906148ccf2dde6cfc4d62b2e65077c.zip
Using lstat() instead of stat() means that attempting to loopback mount
a symlink doesn't work. git-svn-id: svn://busybox.net/trunk/busybox@15788 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--util-linux/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index f665a0875..d5d3eae17 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -285,7 +285,7 @@ static int singlemount(struct mntent *mp, int ignore_busy)
285 // Look at the file. (Not found isn't a failure for remount, or for 285 // Look at the file. (Not found isn't a failure for remount, or for
286 // a synthetic filesystem like proc or sysfs.) 286 // a synthetic filesystem like proc or sysfs.)
287 287
288 if (lstat(mp->mnt_fsname, &st)); 288 if (stat(mp->mnt_fsname, &st));
289 else if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) { 289 else if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
290 // Do we need to allocate a loopback device for it? 290 // Do we need to allocate a loopback device for it?
291 291