mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Make use of default_errsource in exechelp.
* common/exechelp-posix.c (my_error_from_syserror, my_error): New. Use them instead of gpg_error and gpg_error_from_syserror. (create_pipe_and_estream): Remove arg ERRSOURCE and fix use of OUTBOUND which has a wrong name. Adjust callers. (gnupg_spawn_process): Remove arg ERRSOURCE and replace by use of DEFAULT_ERRSOURCE. * common/exechelp-w32.c (gnupg_spawn_process): Ditto. * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto. * common/exectool.c (gnupg_exec_tool_stream): Do not pass GPG_ERROR_FROM_SYSERROR. * tools/gpgconf-comp.c (gc_component_check_options): Ditto. (retrieve_options_from_program): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
6c957c3d88
commit
96c7901ec1
6 changed files with 63 additions and 53 deletions
|
@ -349,7 +349,6 @@ gnupg_create_pipe (int filedes[2])
|
|||
/* Fork and exec the PGMNAME, see exechelp.h for details. */
|
||||
gpg_error_t
|
||||
gnupg_spawn_process (const char *pgmname, const char *argv[],
|
||||
gpg_err_source_t errsource,
|
||||
void (*preexec)(void), unsigned int flags,
|
||||
estream_t *r_infp,
|
||||
estream_t *r_outfp,
|
||||
|
@ -379,6 +378,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
|
|||
INVALID_HANDLE_VALUE};
|
||||
int i;
|
||||
es_syshd_t syshd;
|
||||
gpg_err_source_t errsource = default_errsource;
|
||||
|
||||
if (r_infp)
|
||||
*r_infp = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue