From de01fb8131fd8d11de50e21b7351af99a3515a94 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 20 Oct 2022 14:03:13 +0900 Subject: agent,common,dirmngr,tests,tools: Remove spawn PREEXEC argument. * common/exechelp-posix.c (do_exec): Remove PREEXEC argument. (gnupg_spawn_process): Likewise. (gnupg_spawn_process_fd): Follow the change of do_exec. (gnupg_spawn_process_detached): Likewise. * common/exechelp-w32.c (gnupg_spawn_process): Remove PREEXEC. * common/exechelp.h (gnupg_spawn_process): Remove PREEXEC. * agent/genkey.c (do_check_passphrase_pattern): Follow the change. * common/exectool.c (gnupg_exec_tool_stream): Likewise. * dirmngr/ldap-wrapper.c (ldap_wrapper): Likewise. * tests/gpgscm/ffi.c (do_spawn_process): Likewise. * tools/gpgconf-comp.c (gc_component_check_options): Likewise. (retrieve_options_from_program): Likewise. * tools/gpgconf.c (show_versions_via_dirmngr): Likewise. * tools/gpgtar-create.c (gpgtar_create): Likewise. * tools/gpgtar-extract.c (gpgtar_extract): Likewise. * tools/gpgtar-list.c (gpgtar_list): Likewise. -- PREEXEC is not portable feature and it's not used. GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka --- common/exectool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/exectool.c') diff --git a/common/exectool.c b/common/exectool.c index 8013ba1cc..aaf5898d0 100644 --- a/common/exectool.c +++ b/common/exectool.c @@ -412,7 +412,7 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[], exceptclose[0] = -1; err = gnupg_spawn_process (pgmname, argv, - exceptclose, NULL, GNUPG_SPAWN_NONBLOCK, + exceptclose, GNUPG_SPAWN_NONBLOCK, input? &infp : NULL, &outfp, &errfp, &pid); if (extrapipe[0] != -1) -- cgit v1.2.3