aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgtar-create.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-05-27 20:48:04 +0000
committerWerner Koch <[email protected]>2016-05-27 20:48:31 +0000
commit44a32455c8e41400ea96db4507c8a42bdb65b3b6 (patch)
tree25672960c35cdc1b7fd4650313c7300782f73f36 /tools/gpgtar-create.c
parentcommon: Simplify the fd closing patch 512c56a. (diff)
downloadgnupg-44a32455c8e41400ea96db4507c8a42bdb65b3b6.tar.gz
gnupg-44a32455c8e41400ea96db4507c8a42bdb65b3b6.zip
common: Allow a second input stream for gnupg_exec_tool_stream.
* common/exechelp-posix.c (do_exec): Add arg 'except' and pass to close_all_fds. (gnupg_spawn_process): Add arg 'except'. Change callers to pass NULL for it. * common/exechelp-w32.c (gnupg_spawn_process): Add dummy arg 'except'. * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto. * common/exectool.c (copy_buffer_do_copy): Allow NULL for SINK. (gnupg_exec_tool_stream): Add arg 'inextra'. Change callers to pass NULL for it. Allow NULL for OUTPUT. -- This hack is a first step to allow calling gpg for verification of signatures. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/gpgtar-create.c')
-rw-r--r--tools/gpgtar-create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgtar-create.c b/tools/gpgtar-create.c
index f7c8b1aa3..d615fd38d 100644
--- a/tools/gpgtar-create.c
+++ b/tools/gpgtar-create.c
@@ -932,7 +932,7 @@ gpgtar_create (char **inpattern, int encrypt, int sign)
}
err = gnupg_exec_tool_stream (opt.gpg_program, argv,
- outstream, cipher_stream);
+ outstream, NULL, cipher_stream);
xfree (argv);
if (err)
goto leave;