From 0687a5b496a05cbc06f3bcdc517a2e6cabc535df Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 8 Mar 2012 00:28:24 +0100 Subject: libbb: make xchroot do a chdir("/") after chroot Signed-off-by: Denys Vlasenko --- runit/chpst.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runit') 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) } if (opt & OPT_root) { - xchdir(root); - xchroot("."); + xchroot(root); } if (opt & OPT_u) { -- cgit v1.2.3