libbb: make xchroot do a chdir("/") after chroot
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -114,7 +114,7 @@ int switch_root_main(int argc UNUSED_PARAM, char **argv)
|
||||
}
|
||||
xchroot(".");
|
||||
// The chdir is needed to recalculate "." and ".." links
|
||||
xchdir("/");
|
||||
/*xchdir("/"); - done in xchroot */
|
||||
|
||||
// If a new console specified, redirect stdin/stdout/stderr to it
|
||||
if (console) {
|
||||
|
Reference in New Issue
Block a user