diff options
Diffstat (limited to 'chroot.c')
-rw-r--r-- | chroot.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -54,7 +54,9 @@ int chroot_main(int argc, char **argv) prog = "/bin/sh"; execlp(prog, prog, NULL); #else - shell_main(argc, argv); + char shell[] = "/bin/sh"; + char *shell_argv[2] = { shell, NULL }; + shell_main(1, shell_argv); return EXIT_SUCCESS; #endif } |