diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 20:52:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 20:52:58 +0000 |
commit | e6b10ef0a7a5761c4cd0fe5f48bad953aa92240e (patch) | |
tree | fc3b5b2ed3a811647f00fc461b1752421a5b6fe3 /util-linux/switch_root.c | |
parent | f9d4fc3cf8ca91dbebfa305c5c08f8781caa1a0f (diff) | |
download | busybox-w32-e6b10ef0a7a5761c4cd0fe5f48bad953aa92240e.tar.gz busybox-w32-e6b10ef0a7a5761c4cd0fe5f48bad953aa92240e.tar.bz2 busybox-w32-e6b10ef0a7a5761c4cd0fe5f48bad953aa92240e.zip |
switch_root: move misplaced comment
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r-- | util-linux/switch_root.c | 2 |
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) | |||
103 | // For example, fails when newroot is not a mountpoint | 103 | // For example, fails when newroot is not a mountpoint |
104 | bb_perror_msg_and_die("error moving root"); | 104 | bb_perror_msg_and_die("error moving root"); |
105 | } | 105 | } |
106 | // The chdir is needed to recalculate "." and ".." links | ||
107 | xchroot("."); | 106 | xchroot("."); |
107 | // The chdir is needed to recalculate "." and ".." links | ||
108 | xchdir("/"); | 108 | xchdir("/"); |
109 | 109 | ||
110 | // If a new console specified, redirect stdin/stdout/stderr to it | 110 | // If a new console specified, redirect stdin/stdout/stderr to it |