Blame SOURCES/glibc-rh1934155-1.patch
|
|
a35d80 |
support: Pass environ to child process
|
|
|
a35d80 |
|
|
|
a35d80 |
Pass environ to posix_spawn so that the child process can inherit
|
|
|
a35d80 |
environment of the test.
|
|
|
a35d80 |
|
|
|
a35d80 |
(cherry picked from commit e958490f8c74e660bd93c128b3bea746e268f3f6)
|
|
|
a35d80 |
|
|
|
a35d80 |
diff --git a/support/support_subprocess.c b/support/support_subprocess.c
|
|
|
a35d80 |
index 12c79ff6b0859877..4573350d775ac4c8 100644
|
|
|
a35d80 |
--- a/support/support_subprocess.c
|
|
|
a35d80 |
+++ b/support/support_subprocess.c
|
|
|
a35d80 |
@@ -84,7 +84,7 @@ support_subprogram (const char *file, char *const argv[])
|
|
|
a35d80 |
xposix_spawn_file_actions_addclose (&fa, result.stdout_pipe[1]);
|
|
|
a35d80 |
xposix_spawn_file_actions_addclose (&fa, result.stderr_pipe[1]);
|
|
|
a35d80 |
|
|
|
a35d80 |
- result.pid = xposix_spawn (file, &fa, NULL, argv, NULL);
|
|
|
a35d80 |
+ result.pid = xposix_spawn (file, &fa, NULL, argv, environ);
|
|
|
a35d80 |
|
|
|
a35d80 |
xclose (result.stdout_pipe[1]);
|
|
|
a35d80 |
xclose (result.stderr_pipe[1]);
|