commit | 0687a5b496a05cbc06f3bcdc517a2e6cabc535df | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Thu Mar 08 00:28:24 2012 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Thu Mar 08 00:28:24 2012 +0100 |
tree | 55aedfacfddad2faafb75c4bee0d98122325df5c | |
parent | 39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5 [diff] [blame] |
libbb: make xchroot do a chdir("/") after chroot Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index db6ae35..a301b36 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c
@@ -114,7 +114,7 @@ } 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) {