commit | bc0f783a5f907eb99f32ef3f577fbd2c7ba15ba4 | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Thu May 17 03:54:37 2001 +0000 |
committer | Matt Kraai <kraai@debian.org> | Thu May 17 03:54:37 2001 +0000 |
tree | eaab44cd6321d41677707268625373cef1f8fc64 | |
parent | 233817437ded7a4a7505bc2cdb01eb7c953472c2 [diff] [blame] |
Fix invocation of builtin shell to have proper argc and argv.
diff --git a/chroot.c b/chroot.c index bae9cd7..c10df7a 100644 --- a/chroot.c +++ b/chroot.c
@@ -54,7 +54,9 @@ 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 }