diff options
Diffstat (limited to 'toys/chroot.c')
-rw-r--r-- | toys/chroot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toys/chroot.c b/toys/chroot.c index 0126d968..8d2e9aa2 100644 --- a/toys/chroot.c +++ b/toys/chroot.c @@ -1,13 +1,15 @@ /* vi: set sw=4 ts=4: */ /* * chroot.c - Run command in new root directory. + * + * Not in SUSv3. */ #include "toys.h" void chroot_main(void) { - char *binsh[] = {"/bin/sh", 0}; + char *binsh[] = {"/bin/sh", "-i", 0}; if (chdir(*toys.optargs) || chroot(".")) perror_exit("%s", *toys.optargs); xexec(toys.optargs[1] ? toys.optargs+1 : binsh); |