diff options
author | ed <ed@FreeBSD.org> | 2008-06-23 05:22:06 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-06-23 05:22:06 +0000 |
commit | 6fc79f1dacf676008042f647315769e5e8edbcfa (patch) | |
tree | 37f73290d9e8248f3796231b9552e9950ed5a717 /lib/libc/gen/exec.c | |
parent | 88c4783a40954d6c191083f0147479775667be73 (diff) | |
download | FreeBSD-src-6fc79f1dacf676008042f647315769e5e8edbcfa.zip FreeBSD-src-6fc79f1dacf676008042f647315769e5e8edbcfa.tar.gz |
Turn execvpe() into an internal libc routine.
Adding exevpe() has caused some ports to break. Even though execvpe() is
a useful routine, it does not conform to any standards.
This patch is a little bit different from the patch sent to the mailing
list. I forgot to remove execvpe from the Symbol.map (which does not
seem to miscompile libc, though).
Reviewed by: davidxu
Approved by: philip
Diffstat (limited to 'lib/libc/gen/exec.c')
-rw-r--r-- | lib/libc/gen/exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/exec.c b/lib/libc/gen/exec.c index 4525ce2..985a09a 100644 --- a/lib/libc/gen/exec.c +++ b/lib/libc/gen/exec.c @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include <stdarg.h> #include "un-namespace.h" +#include "libc_private.h" extern char **environ; @@ -140,7 +141,7 @@ execv(name, argv) int execvp(const char *name, char * const *argv) { - return (execvpe(name, argv, environ)); + return (_execvpe(name, argv, environ)); } static int @@ -272,7 +273,7 @@ execvP(const char *name, const char *path, char * const argv[]) } int -execvpe(const char *name, char * const argv[], char * const envp[]) +_execvpe(const char *name, char * const argv[], char * const envp[]) { const char *path; |