public inbox for libc-stable@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED 2.29 1/6] support: Pass environ to child process
@ 2021-04-14  5:41 Siddhesh Poyarekar
  2021-04-14  5:41 ` [COMMITTED 2.29 2/6] support: Typo and formatting fixes Siddhesh Poyarekar
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Siddhesh Poyarekar @ 2021-04-14  5:41 UTC (permalink / raw)
  To: libc-stable

Pass environ to posix_spawn so that the child process can inherit
environment of the test.

(cherry picked from commit e958490f8c74e660bd93c128b3bea746e268f3f6)
---
 support/support_subprocess.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/support_subprocess.c b/support/support_subprocess.c
index 0c8cc6af30..9e02ed747a 100644
--- a/support/support_subprocess.c
+++ b/support/support_subprocess.c
@@ -84,7 +84,7 @@ support_subprogram (const char *file, char *const argv[])
   xposix_spawn_file_actions_addclose (&fa, result.stdout_pipe[1]);
   xposix_spawn_file_actions_addclose (&fa, result.stderr_pipe[1]);
 
-  result.pid = xposix_spawn (file, &fa, NULL, argv, NULL);
+  result.pid = xposix_spawn (file, &fa, NULL, argv, environ);
 
   xclose (result.stdout_pipe[1]);
   xclose (result.stderr_pipe[1]);
-- 
2.29.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-04-14  5:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14  5:41 [COMMITTED 2.29 1/6] support: Pass environ to child process Siddhesh Poyarekar
2021-04-14  5:41 ` [COMMITTED 2.29 2/6] support: Typo and formatting fixes Siddhesh Poyarekar
2021-04-14  5:41 ` [COMMITTED 2.29 3/6] support: Add capability to fork an sgid child Siddhesh Poyarekar
2021-04-14  5:41 ` [COMMITTED 2.29 4/6] tst-env-setuid: Use support_capture_subprogram_self_sgid Siddhesh Poyarekar
2021-04-14  5:41 ` [COMMITTED 2.29 5/6] Enhance setuid-tunables test Siddhesh Poyarekar
2021-04-14  5:41 ` [COMMITTED 2.29 6/6] Fix SXID_ERASE behavior in setuid programs (BZ #27471) Siddhesh Poyarekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).