aboutsummaryrefslogtreecommitdiff
path: root/util-linux/switch_root.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-04-21 20:52:58 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2009-04-21 20:52:58 +0000
commite6b10ef0a7a5761c4cd0fe5f48bad953aa92240e (patch)
treefc3b5b2ed3a811647f00fc461b1752421a5b6fe3 /util-linux/switch_root.c
parentf9d4fc3cf8ca91dbebfa305c5c08f8781caa1a0f (diff)
downloadbusybox-e6b10ef0a7a5761c4cd0fe5f48bad953aa92240e.tar.gz
busybox-e6b10ef0a7a5761c4cd0fe5f48bad953aa92240e.tar.bz2
switch_root: move misplaced comment
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r--util-linux/switch_root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index f9e3444d5..b3b3bf7e6 100644
--- 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