When spawning processes, don't ignore the passed in environment
authorRay Strode <rstrode@redhat.com>
Thu, 10 Jul 2008 17:12:01 +0000 (13:12 -0400)
committerRay Strode <rstrode@redhat.com>
Sat, 12 Jul 2008 04:32:24 +0000 (00:32 -0400)
commit8ec160419231d68c1f6a1e03def8353e02b442a9
treeb9ae6c657346ca65236258e654427f3a2e317a68
parent0e3ec9cec0f6740acd39d6e6983f419e20461282
When spawning processes, don't ignore the passed in environment

Previously, we'd always call execv() and unconditionally use
the environment of the parent.  Now we call execve() with the
passed in environment.  For compatibility, we detect if
the passed in environment is NULL and for that case, use the
environment from the parent instead.
dbus/dbus-spawn.c