From 89e104eb38c3a6896892ff09db11cb1bae2bb0d3 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 25 Nov 2015 14:57:14 +0100 Subject: tools/gpgtar: Handle '--gpg' argument. * tools/gpgtar-create.c (gpgtar_create): Use given gpg program. * tools/gpgtar-extract.c (gpgtar_extract): Likewise. * tools/gpgtar-list.c (gpgtar_list): Likewise. * tools/gpgtar.c (enum cmd_and_opt_values): New constant. (opts): Add argument. (main): Handle argument. * tools/gpgtar.h (opt): Add field 'gpg_program'. Signed-off-by: Justus Winter --- tools/gpgtar-create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/gpgtar-create.c') diff --git a/tools/gpgtar-create.c b/tools/gpgtar-create.c index 69ba4408f..92c1fb8f6 100644 --- a/tools/gpgtar-create.c +++ b/tools/gpgtar-create.c @@ -892,7 +892,8 @@ gpgtar_create (char **inpattern, int encrypt) if (err) goto leave; - err = gpg_encrypt_stream (NULL, NULL, + err = gpg_encrypt_stream (NULL, + opt.gpg_program, outstream, opt.recipients, cipher_stream); -- cgit v1.2.3