Home GnuPG
Diffusion GnuPG 2e4151a3412c

gpgtar: Improve error messages.

Description

gpgtar: Improve error messages.

* tools/gpgtar.h (struct tarinfo_s): New.
* tools/gpgtar.c (cmd, skip_crypto, files_from, null_names): Move
global vars more to the top.
(set_cmd): Rename 'cmd' to 'c'.
* tools/gpgtar-list.c (parse_header): Add arg 'info' and improve error
messages.
(read_header): Add arg 'info' and update counter.
(skip_data): Ditto.
(gpgtar_list): Pass info object to read functions.
(gpgtar_read_header): Add arg 'info'.
* tools/gpgtar-extract.c (gpgtar_extract): add arg 'info' and pass on.
(extract_regular): Add arg 'info' and update counter.

This now prints the block number of a header with error.

(cherry picked from commit 72feb8fa8280aba674573a1afc955a92e8065242)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 6 2019, 5:46 PM
Parents
rGd2a7f9078a46: gpg: Make invalid primary key algos obvious in key listings.
Branches
Unknown
Tags
Unknown