switch_root: move misplaced comment

This commit is contained in:
Denis Vlasenko 2009-04-21 20:52:58 +00:00
parent f9d4fc3cf8
commit e6b10ef0a7

View File

@ -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