summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorRob Landley2006-08-08 00:47:17 +0000
committerRob Landley2006-08-08 00:47:17 +0000
commit47b16a6fe98e1b18f269a2bd34471231553ebb94 (patch)
tree5511d46389ec475040935780417542615f5e98b9 /util-linux/mount.c
parent7250915d78e3040b4aeb98e6e56bb1650b038d9f (diff)
downloadbusybox-47b16a6fe98e1b18f269a2bd34471231553ebb94.zip
busybox-47b16a6fe98e1b18f269a2bd34471231553ebb94.tar.gz
Using lstat() instead of stat() means that attempting to loopback mount
a symlink doesn't work.
Diffstat (limited to 'util-linux/mount.c')
-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 f665a08..d5d3eae 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?