libbb: make xchroot do a chdir("/") after chroot
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user