Using lstat() instead of stat() means that attempting to loopback mount

a symlink doesn't work.
This commit is contained in:
Rob Landley 2006-08-08 00:47:17 +00:00
parent 7250915d78
commit 47b16a6fe9

View File

@ -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?