diff options
author | Werner Koch <[email protected]> | 2020-08-20 13:50:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-08-20 13:50:50 +0000 |
commit | e276f63e4a80e8d1cb1ba5621cedaeb0ccda956d (patch) | |
tree | 3768a164f347db3805702f5f02e105653bc43797 /tools/gpgtar.h | |
parent | build: New configure option --disable-tests (diff) | |
download | gnupg-e276f63e4a80e8d1cb1ba5621cedaeb0ccda956d.tar.gz gnupg-e276f63e4a80e8d1cb1ba5621cedaeb0ccda956d.zip |
gpgtar: Make --files-from and --null work as described.
* tools/gpgtar-create.c (gpgtar_create): Add args files_from and
null_names. Improve reading from a file.
* tools/gpgtar.c: Make global vars static.
(main): Remove tests for --files-from and --null option combinations.
Pass option variables to gpgtar_create.
--
GnuPG-bug-id: 5027
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/gpgtar.h')
-rw-r--r-- | tools/gpgtar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpgtar.h b/tools/gpgtar.h index 74bfb56e8..3e7aa5ed6 100644 --- a/tools/gpgtar.h +++ b/tools/gpgtar.h @@ -130,7 +130,8 @@ gpg_error_t read_record (estream_t stream, void *record); gpg_error_t write_record (estream_t stream, const void *record); /*-- gpgtar-create.c --*/ -gpg_error_t gpgtar_create (char **inpattern, int encrypt, int sign); +gpg_error_t gpgtar_create (char **inpattern, const char *files_from, + int null_names, int encrypt, int sign); /*-- gpgtar-extract.c --*/ gpg_error_t gpgtar_extract (const char *filename, int decrypt); |