aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chroot.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-10 15:43:37 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-10 15:43:37 +0000
commit99912ca733dd960f5589227fd999c86e73c8e894 (patch)
tree9df947fc08884d498cf76a02204d74b121064134 /coreutils/chroot.c
parentff131b980d524a33d8a43cefe65e14f64a43f2da (diff)
downloadbusybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.tar.gz
busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.tar.bz2
busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.zip
audit small applets and mark some of them as NOFORK.
Put big scary warnings in relevant places.
Diffstat (limited to 'coreutils/chroot.c')
-rw-r--r--coreutils/chroot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/coreutils/chroot.c b/coreutils/chroot.c
index fcd70f21a..874ee917e 100644
--- a/coreutils/chroot.c
+++ b/coreutils/chroot.c
@@ -27,8 +27,9 @@ int chroot_main(int argc, char **argv)
27 ++argv; 27 ++argv;
28 if (argc == 2) { 28 if (argc == 2) {
29 argv -= 2; 29 argv -= 2;
30 if (!(*argv = getenv("SHELL"))) { 30 argv[0] = getenv("SHELL");
31 *argv = (char *) DEFAULT_SHELL; 31 if (!argv[0]) {
32 argv[0] = (char *) DEFAULT_SHELL;
32 } 33 }
33 argv[1] = (char *) "-i"; 34 argv[1] = (char *) "-i";
34 } 35 }