Date: Fri, 27 Nov 2009 13:05:14 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen exec.c Message-ID: <200911271305.nARD5ZBe065549@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-11-27 13:05:14 UTC
FreeBSD src repository
Modified files:
lib/libc/gen exec.c
Log:
SVN rev 199862 on 2009-11-27 13:05:14Z by 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
Revision Changes Path
1.26 +2 -2 src/lib/libc/gen/exec.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911271305.nARD5ZBe065549>
