mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpgtar: Print a result status with skiupped 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:
parent
5118beeec1
commit
56b65f33d2
3 changed files with 69 additions and 10 deletions
|
@ -54,8 +54,14 @@ struct
|
|||
/* An info structure to avoid global variables. */
|
||||
struct tarinfo_s
|
||||
{
|
||||
unsigned long long nblocks; /* Count of processed blocks. */
|
||||
unsigned long long nblocks; /* Count of processed blocks. */
|
||||
unsigned long long headerblock; /* Number of current header block. */
|
||||
unsigned long long nextracted; /* Number of extracted files. */
|
||||
unsigned long skipped_badname;
|
||||
unsigned long skipped_suspicious;
|
||||
unsigned long skipped_symlinks;
|
||||
unsigned long skipped_hardlinks;
|
||||
unsigned long skipped_other;
|
||||
};
|
||||
typedef struct tarinfo_s *tarinfo_t;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue