[klibc] [PATCH 6/8] switch_root: Fix single file mounts
maximilian attems
max at stro.at
Wed Jul 13 06:48:31 PDT 2011
From: Michal Suchanek <michal.suchanek at ruk.cuni.cz>
The root of the failure is that nuke cannot cope with file
mounts (single files mounted, not directories). These are the result of
using fuse to get to the root filesystem (httpfs, curlftpfs).
This fixes
http://bugs.debian.org/476268
Signed-off-by: maximilian attems <max at stro.at>
---
usr/kinit/switch_root/switch_rootlib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/usr/kinit/switch_root/switch_rootlib.c b/usr/kinit/switch_root/switch_rootlib.c
index 14c3e34..372d2b3 100644
--- a/usr/kinit/switch_root/switch_rootlib.c
+++ b/usr/kinit/switch_root/switch_rootlib.c
@@ -80,7 +80,7 @@ static int nuke_dirent(int len, const char *dir, const char *name, dev_t me)
assert(xlen < bytes);
if (lstat(path, &st))
- return ENOENT; /* Return 0 since already gone? */
+ return 0; /* Return 0 since already gone. */
if (st.st_dev != me)
return 0; /* DO NOT recurse down mount points!!!!! */
--
1.7.5.4
More information about the klibc
mailing list