*: use fopen_or_warn in few more places

This commit is contained in:
Denis Vlasenko committed 2008-03-20 21:19:35 +00:00
1 parent 275b929e01
commit f90ab183d6
4 files changed
+4 -6

No files matched your search

+2 -1
View File
@@ -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 */
}