mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
switch_root: move misplaced comment
This commit is contained in:
parent
f9d4fc3cf8
commit
e6b10ef0a7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user