aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-05-20 12:32:41 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-05-20 12:32:41 +0000
commit7b59929d4be1b489e0223d9d7a57a6221f404528 (patch)
tree80c37081e0e641fd42db81761bd6d1dbe90a2ee7
parentbeb469381d09e55338058fceb1aacc9a90053dd9 (diff)
downloadbusybox-w32-7b59929d4be1b489e0223d9d7a57a6221f404528.tar.gz
busybox-w32-7b59929d4be1b489e0223d9d7a57a6221f404528.tar.bz2
busybox-w32-7b59929d4be1b489e0223d9d7a57a6221f404528.zip
mount: fix mounting of symlinks (mount from util-linux allows that)
git-svn-id: svn://busybox.net/trunk/busybox@18653 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--util-linux/mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index b76c38ab1..030ea662a 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1453,8 +1453,10 @@ static int singlemount(struct mntent *mp, int ignore_busy)
1453 1453
1454 // Look at the file. (Not found isn't a failure for remount, or for 1454 // Look at the file. (Not found isn't a failure for remount, or for
1455 // a synthetic filesystem like proc or sysfs.) 1455 // a synthetic filesystem like proc or sysfs.)
1456 // (We use stat, not lstat, in order to allow
1457 // mount symlink_to_file_or_blkdev dir)
1456 1458
1457 if (!lstat(mp->mnt_fsname, &st) 1459 if (!stat(mp->mnt_fsname, &st)
1458 && !(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE)) 1460 && !(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))
1459 ) { 1461 ) {
1460 // Do we need to allocate a loopback device for it? 1462 // Do we need to allocate a loopback device for it?