Searched hist:199862 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.3-release/lib/libc/gen/
H A Dexec.cdiff 199862 Fri Nov 27 13:07:19 MST 2009 ed 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

Completed in 109 milliseconds