Home GnuPG
Diffusion GnuPG ed9a420a221a

gpgtar: Emit progress status lines in create mode.

Description

gpgtar: Emit progress status lines in create mode.

* tools/gpgtar.h (opt): Add field status_stream.
* tools/gpgtar.c (main): Set status_stream.
* tools/gpgtar-create.c (global_header_count): Rename to
global_total_files.
(global_written_files): New.
(global_total_data, global_written_data): New.
(struct scanctrl_s): Add field file_count.
(write_progress): New.
(write_file): Add arg skipped_open. Don't bail out immediatly on open
error.  Write progress lines.
(gpgtar_create): Write progress lines.  Print info aout skipped files.

(cherry picked from commit f84264e8acf742793c73ce78491cab61fac37051)

Details

Provenance
wernerAuthored on Jan 30 2023, 3:23 PM
Parents
rG706d557a6451: gpg: Delete secret key after "keytocard".
Branches
Unknown
Tags
Unknown
Tasks
T6363: Add progress status output to gpgtar