diff options
author | ed <ed@FreeBSD.org> | 2009-11-27 13:05:14 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-11-27 13:05:14 +0000 |
commit | 6909f7535ebfa64618eff12fc2bb071dde06a52b (patch) | |
tree | 2c11ccaa7231e474ab629db20bd0800fdb88d2c7 /lib/libc/stdlib/strtoull.c | |
parent | 0f796b1cf44c3037f579295ad941e4fe3350f433 (diff) | |
download | FreeBSD-src-6909f7535ebfa64618eff12fc2bb071dde06a52b.zip FreeBSD-src-6909f7535ebfa64618eff12fc2bb071dde06a52b.tar.gz |
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
Diffstat (limited to 'lib/libc/stdlib/strtoull.c')
0 files changed, 0 insertions, 0 deletions