mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
0f13ccd0e0
commit
de01fb8131
12 changed files with 17 additions and 24 deletions
|
@ -1370,7 +1370,7 @@ gc_component_check_options (int component, estream_t out, const char *conf_file)
|
|||
|
||||
result = 0;
|
||||
errlines = NULL;
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, NULL, 0,
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, 0,
|
||||
NULL, NULL, &errfp, &pid);
|
||||
if (err)
|
||||
result |= 1; /* Program could not be run. */
|
||||
|
@ -1759,7 +1759,7 @@ retrieve_options_from_program (gc_component_id_t component, int only_installed)
|
|||
/* First we need to read the option table from the program. */
|
||||
argv[0] = "--dump-option-table";
|
||||
argv[1] = NULL;
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, NULL, 0,
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, 0,
|
||||
NULL, &outfp, NULL, &pid);
|
||||
if (err)
|
||||
{
|
||||
|
@ -1940,7 +1940,7 @@ retrieve_options_from_program (gc_component_id_t component, int only_installed)
|
|||
/* Now read the default options. */
|
||||
argv[0] = "--gpgconf-list";
|
||||
argv[1] = NULL;
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, NULL, 0,
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, 0,
|
||||
NULL, &outfp, NULL, &pid);
|
||||
if (err)
|
||||
{
|
||||
|
|
|
@ -1182,7 +1182,7 @@ show_versions_via_dirmngr (estream_t fp)
|
|||
pgmname = gnupg_module_name (GNUPG_MODULE_NAME_DIRMNGR);
|
||||
argv[0] = "--gpgconf-versions";
|
||||
argv[1] = NULL;
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, NULL, 0,
|
||||
err = gnupg_spawn_process (pgmname, argv, NULL, 0,
|
||||
NULL, &outfp, NULL, &pid);
|
||||
if (err)
|
||||
{
|
||||
|
|
|
@ -1195,7 +1195,7 @@ gpgtar_create (char **inpattern, const char *files_from, int null_names,
|
|||
goto leave;
|
||||
}
|
||||
|
||||
err = gnupg_spawn_process (opt.gpg_program, argv, NULL, NULL,
|
||||
err = gnupg_spawn_process (opt.gpg_program, argv, NULL,
|
||||
(GNUPG_SPAWN_KEEP_STDOUT
|
||||
| GNUPG_SPAWN_KEEP_STDERR),
|
||||
&outstream, NULL, NULL, &pid);
|
||||
|
|
|
@ -408,7 +408,7 @@ gpgtar_extract (const char *filename, int decrypt)
|
|||
goto leave;
|
||||
}
|
||||
|
||||
err = gnupg_spawn_process (opt.gpg_program, argv, NULL, NULL,
|
||||
err = gnupg_spawn_process (opt.gpg_program, argv, NULL,
|
||||
((filename? 0 : GNUPG_SPAWN_KEEP_STDIN)
|
||||
| GNUPG_SPAWN_KEEP_STDERR),
|
||||
NULL, &stream, NULL, &pid);
|
||||
|
|
|
@ -501,7 +501,7 @@ gpgtar_list (const char *filename, int decrypt)
|
|||
goto leave;
|
||||
}
|
||||
|
||||
err = gnupg_spawn_process (opt.gpg_program, argv, NULL, NULL,
|
||||
err = gnupg_spawn_process (opt.gpg_program, argv, NULL,
|
||||
((filename? 0 : GNUPG_SPAWN_KEEP_STDIN)
|
||||
| GNUPG_SPAWN_KEEP_STDERR),
|
||||
NULL, &stream, NULL, &pid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue