diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-08-02 20:56:16 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-08-02 20:56:16 +0000 |
commit | 0b7d70c822ae473b42a9db95cdc026286d992a48 (patch) | |
tree | 64e0bd523ef185d3b4ebb1734f7773fa3058606c /coreutils/chroot.c | |
parent | 8aa0b62a885e1a0f125e4cd47d993fa7025daf36 (diff) | |
download | busybox-w32-0b7d70c822ae473b42a9db95cdc026286d992a48.tar.gz busybox-w32-0b7d70c822ae473b42a9db95cdc026286d992a48.tar.bz2 busybox-w32-0b7d70c822ae473b42a9db95cdc026286d992a48.zip |
Fix up some silly messups with the debian packaging, and a dumb0_60_0
bug with chroot. I've had the package uploaded but perms set to
000, so I am going to re-tag things and re-cut the release. Folks
who pulled from CVS in the last 30 minutes with just have to cope.
-Erik
Diffstat (limited to 'coreutils/chroot.c')
-rw-r--r-- | coreutils/chroot.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/chroot.c b/coreutils/chroot.c index f2d9b4d00..0440e46b9 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c | |||
@@ -48,17 +48,17 @@ int chroot_main(int argc, char **argv) | |||
48 | prog = *argv; | 48 | prog = *argv; |
49 | execvp(*argv, argv); | 49 | execvp(*argv, argv); |
50 | } else { | 50 | } else { |
51 | #ifndef BB_SH | 51 | #if defined(BB_SH) && defined BB_FEATURE_SH_STANDALONE_SHELL |
52 | prog = getenv("SHELL"); | ||
53 | if (!prog) | ||
54 | prog = "/bin/sh"; | ||
55 | execlp(prog, prog, NULL); | ||
56 | #else | ||
57 | char shell[] = "/bin/sh"; | 52 | char shell[] = "/bin/sh"; |
58 | char *shell_argv[2] = { shell, NULL }; | 53 | char *shell_argv[2] = { shell, NULL }; |
59 | applet_name = shell; | 54 | applet_name = shell; |
60 | shell_main(1, shell_argv); | 55 | shell_main(1, shell_argv); |
61 | return EXIT_SUCCESS; | 56 | return EXIT_SUCCESS; |
57 | #else | ||
58 | prog = getenv("SHELL"); | ||
59 | if (!prog) | ||
60 | prog = "/bin/sh"; | ||
61 | execlp(prog, prog, NULL); | ||
62 | #endif | 62 | #endif |
63 | } | 63 | } |
64 | perror_msg_and_die("cannot execute %s", prog); | 64 | perror_msg_and_die("cannot execute %s", prog); |