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:
f9d4fc3
)
switch_root: move misplaced comment
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 21 Apr 2009 20:52:58 +0000
(20:52 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 21 Apr 2009 20:52:58 +0000
(20:52 -0000)
util-linux/switch_root.c
patch
|
blob
|
history
diff --git
a/util-linux/switch_root.c
b/util-linux/switch_root.c
index f9e3444d5b097d04cee780b7a724a7a772c4de48..b3b3bf7e6d1fb1a290811a3358018a90b34290e2 100644
(file)
--- a/
util-linux/switch_root.c
+++ b/
util-linux/switch_root.c
@@
-103,8
+103,8
@@
int switch_root_main(int argc UNUSED_PARAM, char **argv)
// For example, fails when newroot is not a mountpoint
bb_perror_msg_and_die("error moving root");
}
- // The chdir is needed to recalculate "." and ".." links
xchroot(".");
+ // The chdir is needed to recalculate "." and ".." links
xchdir("/");
// If a new console specified, redirect stdin/stdout/stderr to it