Files
make/tests/scripts/functions
Paul Smith c4e232e44f Always restore global environ if we use vfork
We may change the global environ variable in the child; when using
vfork() this also sets it in the parent.  Preserve the parent's
environ in child_execute_job() so it takes effect for all callers.

Reported by Denis Excoffier <bug-tar@Denis-Excoffier.org>
Root cause found by Martin Dorey <Martin.Dorey@hitachivantara.com>

* src/job.c (start_job_command): Remove save/restore of the parent
environment.
(child_execute_job): Add save/restore of the parent environment,
if we use vfork().
* tests/scripts/functions/shell: Add a test the crashes if we don't
reset environ after we run $(shell ...).
2022-09-25 16:57:31 -04:00
..
2017-06-04 18:37:20 -04:00
2020-04-01 02:02:57 -04:00
2021-03-28 16:25:52 -04:00
2020-04-01 02:02:57 -04:00
2003-11-04 07:40:29 +00:00
2020-04-01 02:02:57 -04:00
2017-06-04 18:37:20 -04:00
2000-04-22 02:11:17 +00:00
2002-07-08 02:26:47 +00:00