aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-03-20 21:19:35 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-03-20 21:19:35 +0000
commitf90ab183d63c64fd2c35f00d65aedbaae8402740 (patch)
tree717976261ccdb8e7ab68c79def5ea10936c0dcd3 /shell
parent275b929e0157c7e40a66df108b1e1954b59a2bdf (diff)
downloadbusybox-f90ab183d63c64fd2c35f00d65aedbaae8402740.tar.gz
busybox-f90ab183d63c64fd2c35f00d65aedbaae8402740.tar.bz2
*: use fopen_or_warn in few more places
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 2d5697269..4e6d50094 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -891,7 +891,8 @@ static int builtin_cd(char **argv)
static int builtin_exec(char **argv)
{
if (argv[1] == NULL)
- return EXIT_SUCCESS; /* Really? */
+ return EXIT_SUCCESS; /* bash does this */
+// FIXME: if exec fails, bash does NOT exit! We do...
pseudo_exec_argv(argv + 1);
/* never returns */
}