mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpgtar: New option --with-log
* tools/gpgtar.c: New option --with-log. * tools/gpgtar.h (opt): Add field with_log. * tools/gpgtar-extract.c (gpgtar_extract): Move directory string building up. Add option --log-file if needed. * tools/gpgtar-create.c (gpgtar_create): Make tmpbuf static becuase it is used outside of its scope. * tools/gpgtar-list.c (gpgtar_list): Ditto.
This commit is contained in:
parent
6d30fb6940
commit
ce69d55f70
6 changed files with 56 additions and 38 deletions
|
@ -81,6 +81,7 @@ enum cmd_and_opt_values
|
|||
oAnswerNo,
|
||||
oStatusFD,
|
||||
oRequireCompliance,
|
||||
oWithLog,
|
||||
|
||||
/* Compatibility with gpg-zip. */
|
||||
oGpgArgs,
|
||||
|
@ -123,6 +124,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
ARGPARSE_s_n (oAnswerNo, "no", "@"),
|
||||
ARGPARSE_s_i (oStatusFD, "status-fd", "@"),
|
||||
ARGPARSE_s_n (oRequireCompliance, "require-compliance", "@"),
|
||||
ARGPARSE_s_n (oWithLog, "with-log", "@"),
|
||||
|
||||
ARGPARSE_group (302, N_("@\nTar options:\n ")),
|
||||
|
||||
|
@ -389,6 +391,7 @@ parse_arguments (ARGPARSE_ARGS *pargs, ARGPARSE_OPTS *popts)
|
|||
case oAnswerNo: opt.answer_no = 1; break;
|
||||
case oStatusFD: opt.status_fd = pargs->r.ret_int; break;
|
||||
case oRequireCompliance: opt.require_compliance = 1; break;
|
||||
case oWithLog: opt.with_log = 1; break;
|
||||
|
||||
case oGpgArgs:;
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue