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/posix_spawn.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/posix_spawn.c')
-rw-r--r-- | lib/libc/gen/posix_spawn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/posix_spawn.c b/lib/libc/gen/posix_spawn.c index a587d9e..8e4e0a4 100644 --- a/lib/libc/gen/posix_spawn.c +++ b/lib/libc/gen/posix_spawn.c @@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <unistd.h> #include "un-namespace.h" +#include "libc_private.h" extern char **environ; @@ -212,7 +213,7 @@ do_posix_spawn(pid_t *pid, const char *path, _exit(127); } if (use_env_path) - execvpe(path, argv, envp != NULL ? envp : environ); + _execvpe(path, argv, envp != NULL ? envp : environ); else _execve(path, argv, envp != NULL ? envp : environ); error = errno; |