Ed Schouten f67d07f0e1 Properly use the envp argument in execvPe().
execvPe() is called by _execvpe(), which we added to implement
posix_spawnp(). We just took execvP() and added the envp argument.
Unfortunately we forgot to change the implementation to use envp over
environ.

This fixes the following piece of code:

| char * const arg[2] = { "env", NULL };
| char * const env[2] = { "FOO=BAR", NULL };
| posix_spawnp(NULL, "/usr/bin/env", NULL, NULL, arg, env);

MFC after:	2 weeks
2009-11-27 13:05:14 +00:00
..
2009-10-26 17:27:30 +00:00
2009-06-23 23:20:09 +00:00
2009-09-21 08:30:52 +00:00
2009-11-02 12:35:38 +00:00
2009-11-20 08:57:25 +00:00