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:
1b47bbd
)
switch_root: print errno on failure
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 21 Apr 2009 00:29:17 +0000
(
00:29
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 21 Apr 2009 00:29:17 +0000
(
00:29
-0000)
util-linux/switch_root.c
patch
|
blob
|
history
diff --git
a/util-linux/switch_root.c
b/util-linux/switch_root.c
index 21cc99229752368d41db367976997411f8ba49dd..08aa72597600841f5abeeba0bf9b051dc2b5cd05 100644
(file)
--- a/
util-linux/switch_root.c
+++ b/
util-linux/switch_root.c
@@
-97,7
+97,7
@@
int switch_root_main(int argc UNUSED_PARAM, char **argv)
// Overmount / with newdir and chroot into it. The chdir is needed to
// recalculate "." and ".." links.
if (mount(".", "/", NULL, MS_MOVE, NULL))
- bb_error_msg_and_die("error moving root");
+ bb_
p
error_msg_and_die("error moving root");
xchroot(".");
xchdir("/");