diff options
| author | NIIBE Yutaka <[email protected]> | 2025-11-19 05:49:16 +0100 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2025-11-19 05:49:16 +0100 |
| commit | 26d740f940b3cbda43e0b06a45c86f21ebc236ed (patch) | |
| tree | 1e98ffbe302fc125ce65b9e2ae9c39e5662b8414 /src | |
| parent | argparse: Use SYSCONFDIR for /etc. (diff) | |
| download | libgpg-error-26d740f940b3cbda43e0b06a45c86f21ebc236ed.tar.gz libgpg-error-26d740f940b3cbda43e0b06a45c86f21ebc236ed.zip | |
spawn:posix: Rename the field to ENVP to avoid a build issue.
* src/spawn-posix.c (struct gpgrt_spawn_actions): Rename the field to
ENVP.
(my_exec, _gpgrt_spawn_actions_set_environ): Follow the change.
--
Signed-off-by: Sachin T <[email protected]>
Co-authored-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/spawn-posix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spawn-posix.c b/src/spawn-posix.c index 8cdd032..bd236ad 100644 --- a/src/spawn-posix.c +++ b/src/spawn-posix.c @@ -63,7 +63,7 @@ struct gpgrt_spawn_actions { int fd[3]; const int *except_fds; - char **environ; + char **envp; const char *const *envchange; void (*atfork) (void *); void *atfork_arg; @@ -432,8 +432,8 @@ my_exec (const char *pgmname, const char *argv[], gpgrt_spawn_actions_t act, if (pgmname == NULL) return 0; - if (act->environ) - execve (pgmname, (char *const *)argv, act->environ); + if (act->envp) + execve (pgmname, (char *const *)argv, act->envp); else execv (pgmname, (char *const *)argv); @@ -534,7 +534,7 @@ void _gpgrt_spawn_actions_set_environ (gpgrt_spawn_actions_t act, char **environ_for_child) { - act->environ = environ_for_child; + act->envp = environ_for_child; } void |
