aboutsummaryrefslogtreecommitdiffstats
path: root/common/exectool.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-05-27 13:25:03 +0000
committerWerner Koch <[email protected]>2016-05-27 13:34:22 +0000
commit96c7901ec1c79be732570811223d3ea54875abfe (patch)
tree4dd77c0d37a0f4047d703d115099e3619f8adf0a /common/exectool.c
parentgpg: Keep current and total of PROGESS status lines small enough. (diff)
downloadgnupg-96c7901ec1c79be732570811223d3ea54875abfe.tar.gz
gnupg-96c7901ec1c79be732570811223d3ea54875abfe.zip
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r--common/exectool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/exectool.c b/common/exectool.c
index 7b3a8f1b5..9ba336dcd 100644
--- a/common/exectool.c
+++ b/common/exectool.c
@@ -251,7 +251,7 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
copy_buffer_init (&cpbuf[0]);
copy_buffer_init (&cpbuf[1]);
- err = gnupg_spawn_process (pgmname, argv, GPG_ERR_SOURCE_DEFAULT,
+ err = gnupg_spawn_process (pgmname, argv,
NULL, GNUPG_SPAWN_NONBLOCK,
input? &infp : NULL,
&outfp, &errfp, &pid);