1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

gpgtar: Print a result status with skipped files.

* tools/gpgtar.h (struct tarinfo_s): Add new fields.
* tools/gpgtar-extract.c (check_suspicious_name): Add arg info.
(extract_regular): Count files.
(gpgtar_extract): Print stats.
This commit is contained in:
Werner Koch 2023-03-15 11:18:29 +01:00
parent ed9a420a22
commit 0045583cd2
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 70 additions and 11 deletions

View file

@ -487,7 +487,7 @@ main (int argc, char **argv)
/* Set status stream for our own use of --status-fd. The original
* status fd is passed verbatim to gpg. */
if (opt.status_fd)
if (opt.status_fd != -1)
{
int fd = translate_sys2libc_fd_int (opt.status_fd, 1);