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 /runit | |
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 'runit')
-rw-r--r-- | runit/chpst.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 9b8c99bdd..ac296babf 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -417,8 +417,7 @@ int chpst_main(int argc UNUSED_PARAM, char **argv) | |||
417 | } | 417 | } |
418 | 418 | ||
419 | if (opt & OPT_root) { | 419 | if (opt & OPT_root) { |
420 | xchdir(root); | 420 | xchroot(root); |
421 | xchroot("."); | ||
422 | } | 421 | } |
423 | 422 | ||
424 | if (opt & OPT_u) { | 423 | if (opt & OPT_u) { |