diff options
| author | tgoodwin <tgoodwin> | 1998-02-17 15:46:42 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:04 +0100 |
| commit | 67fd3c37e6908795bd86220435a37637c9e16d63 (patch) | |
| tree | 7237219ed66a726f951d0e7b5ddf0bf20c6b38b7 /exec.c | |
| parent | 063d3cc3f65f8f5b8dd636b7b8bd07e132e5aa28 (diff) | |
first stab at getting execve.c only compiled when needed
Diffstat (limited to 'exec.c')
| -rw-r--r-- | exec.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -90,11 +90,7 @@ extern void exec(List *s, bool parent) { return; rc_exit(getstatus()); } -#if HASH_BANG - execve(path, (char * const *) av, (char * const *) ev); -#else - my_execve(path, av, ev); /* bogus, huh? */ -#endif + rc_execve(path, (char * const *) av, (char * const *) ev); #ifdef DEFAULTINTERP if (errno == ENOEXEC) { @@ -103,6 +99,7 @@ extern void exec(List *s, bool parent) { execve(*av, (char * const *) av, (char * const *) ev); } #endif + uerror(*av); rc_exit(1); /* NOTREACHED */ |