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:
7250915
)
Using lstat() instead of stat() means that attempting to loopback mount
author
Rob Landley
<rob@landley.net>
Tue, 8 Aug 2006 00:47:17 +0000
(
00:47
-0000)
committer
Rob Landley
<rob@landley.net>
Tue, 8 Aug 2006 00:47:17 +0000
(
00:47
-0000)
a symlink doesn't work.
util-linux/mount.c
patch
|
blob
|
history
diff --git
a/util-linux/mount.c
b/util-linux/mount.c
index f665a08758e2377809a04ba726448bba79c777f2..d5d3eae177135e42206440df077adcbce7888a6a 100644
(file)
--- 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 (
l
stat(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?