From 84b02c0707906148ccf2dde6cfc4d62b2e65077c Mon Sep 17 00:00:00 2001 From: landley Date: Tue, 8 Aug 2006 00:47:17 +0000 Subject: 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 --- util-linux/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) // 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? -- cgit v1.2.3-55-g6feb