diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-08 00:28:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-08 00:28:24 +0100 |
commit | 0687a5b496a05cbc06f3bcdc517a2e6cabc535df (patch) | |
tree | 55aedfacfddad2faafb75c4bee0d98122325df5c /coreutils/chroot.c | |
parent | 39c2cb2e93e2acc75a5eb6dd91d81f79c787acd5 (diff) | |
download | busybox-w32-0687a5b496a05cbc06f3bcdc517a2e6cabc535df.tar.gz busybox-w32-0687a5b496a05cbc06f3bcdc517a2e6cabc535df.tar.bz2 busybox-w32-0687a5b496a05cbc06f3bcdc517a2e6cabc535df.zip |
libbb: make xchroot do a chdir("/") after chroot
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/chroot.c')
-rw-r--r-- | coreutils/chroot.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index ab8beb023..633e66b38 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c | |||
@@ -31,7 +31,6 @@ int chroot_main(int argc UNUSED_PARAM, char **argv) | |||
31 | if (!*argv) | 31 | if (!*argv) |
32 | bb_show_usage(); | 32 | bb_show_usage(); |
33 | xchroot(*argv); | 33 | xchroot(*argv); |
34 | xchdir("/"); | ||
35 | 34 | ||
36 | ++argv; | 35 | ++argv; |
37 | if (!*argv) { /* no 2nd param (PROG), use shell */ | 36 | if (!*argv) { /* no 2nd param (PROG), use shell */ |