aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chroot.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-17 03:54:37 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-05-17 03:54:37 +0000
commitdee05b159b4f447f9deb10ae6a3bd35a084cd581 (patch)
treeeaab44cd6321d41677707268625373cef1f8fc64 /coreutils/chroot.c
parent1aa0bb1bdef46ab30d8a4ac295ab3d98c4e86f4b (diff)
downloadbusybox-w32-dee05b159b4f447f9deb10ae6a3bd35a084cd581.tar.gz
busybox-w32-dee05b159b4f447f9deb10ae6a3bd35a084cd581.tar.bz2
busybox-w32-dee05b159b4f447f9deb10ae6a3bd35a084cd581.zip
Fix invocation of builtin shell to have proper argc and argv.
git-svn-id: svn://busybox.net/trunk/busybox@2665 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/chroot.c')
-rw-r--r--coreutils/chroot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/coreutils/chroot.c b/coreutils/chroot.c
index bae9cd757..c10df7a7c 100644
--- a/coreutils/chroot.c
+++ b/coreutils/chroot.c
@@ -54,7 +54,9 @@ int chroot_main(int argc, char **argv)
54 prog = "/bin/sh"; 54 prog = "/bin/sh";
55 execlp(prog, prog, NULL); 55 execlp(prog, prog, NULL);
56#else 56#else
57 shell_main(argc, argv); 57 char shell[] = "/bin/sh";
58 char *shell_argv[2] = { shell, NULL };
59 shell_main(1, shell_argv);
58 return EXIT_SUCCESS; 60 return EXIT_SUCCESS;
59#endif 61#endif
60 } 62 }