libbb: make xchroot do a chdir("/") after chroot
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1 parent
39c2cb2e93
commit
0687a5b496
6 files changed
+6
-8
No files matched your search
@@ -31,7 +31,6 @@ int chroot_main(int argc UNUSED_PARAM, char **argv)
|
||||
if (!*argv)
|
||||
bb_show_usage();
|
||||
xchroot(*argv);
|
||||
xchdir("/");
|
||||
|
||||
++argv;
|
||||
if (!*argv) { /* no 2nd param (PROG), use shell */
|
||||
|
||||
Reference in new issue
Block a user