projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d70997
)
mount: fix mounting of symlinks (mount from util-linux allows that)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 20 May 2007 12:32:41 +0000
(12:32 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 20 May 2007 12:32:41 +0000
(12:32 -0000)
util-linux/mount.c
patch
|
blob
|
history
diff --git
a/util-linux/mount.c
b/util-linux/mount.c
index b76c38ab1d4e2a499b5a5d857a4af66b0af613d3..030ea662ac0dd1f170cae48c35b11836b5df4fb4 100644
(file)
--- a/
util-linux/mount.c
+++ b/
util-linux/mount.c
@@
-1453,8
+1453,10
@@
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.)
+ // (We use stat, not lstat, in order to allow
+ // mount symlink_to_file_or_blkdev dir)
- if (!
l
stat(mp->mnt_fsname, &st)
+ if (!stat(mp->mnt_fsname, &st)
&& !(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))
) {
// Do we need to allocate a loopback device for it?