exec: fix a race condition when setting environment variables
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Thu, 11 Apr 2019 16:14:22 +0000 (18:14 +0200)
committerMichael Kaufmann <mail@michael-kaufmann.ch>
Thu, 3 Oct 2019 09:13:05 +0000 (11:13 +0200)
commitc23a978a847da09b6b28843e523f6e763e192675
tree9f22a4edb958deb24ecac706aea9bf2c3e7fe39f
parentebb558dd443046558eaf0bb3ec51566ad305190f
exec: fix a race condition when setting environment variables

Pass the environment as a parameter to the child process
and don't modify the environment of the parent process.

Follow-up to 0684aea7

Closes #3041
configure.ac
src/exec.c