tools/gpgtar: Add '--dry-run'.
authorJustus Winter <justus@g10code.com>
Thu, 26 Nov 2015 16:05:12 +0000 (17:05 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 26 Nov 2015 16:05:12 +0000 (17:05 +0100)
commit676b2d7081291f7e47a66755ab07af259fea130b
tree302dda6bb3a06964c5ce2b8d2370e3a9bf3241bf
parent69a8440f44fa025e33a4cc32d17695c9ac385043
tools/gpgtar: Add '--dry-run'.

* tools/gpgtar-extract.c (extract_{regular,directory}): Honor
'--dry-run'.
* tools/gpgtar.c (enum cmd_and_opt_values): New value.
(opts): Add '--dry-run'.
(parse_arguments): Handle '--dry-run'.
* tools/gpgtar.h (opt): Add field 'dry_run'.

Signed-off-by: Justus Winter <justus@g10code.com>
tools/gpgtar-extract.c
tools/gpgtar.c
tools/gpgtar.h