diff options
author | Werner Koch <[email protected]> | 2020-08-20 14:11:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-08-20 14:11:58 +0000 |
commit | ba873216ff999d45680b7aed0713d7e65c2e7d2f (patch) | |
tree | cf726087f1defef7a95d77e1bab0cc3dc9fbdd39 | |
parent | gpgtar: Make --files-from and --null work as described. (diff) | |
download | gnupg-ba873216ff999d45680b7aed0713d7e65c2e7d2f.tar.gz gnupg-ba873216ff999d45680b7aed0713d7e65c2e7d2f.zip |
gpgtar: Add dummy option --tar
--
GnuPG-bug-id: 3772
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | doc/tools.texi | 5 | ||||
-rw-r--r-- | tools/gpgtar.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/tools.texi b/doc/tools.texi index 3bbddbcd3..7779af43d 100644 --- a/doc/tools.texi +++ b/doc/tools.texi @@ -2127,6 +2127,11 @@ and parse them. The only supported tar options are "--directory", "--files-from", and "--null" This is an obsolete options because those supported tar options can also be given directly. +@item --tar @var{command} +@opindex tar +This is a dummy option for backward compatibility. +@c ... to the gpg-zip script we provided in the past + @item --version @opindex version Print version of the program and exit. diff --git a/tools/gpgtar.c b/tools/gpgtar.c index 315f8a74b..4a5a00a1f 100644 --- a/tools/gpgtar.c +++ b/tools/gpgtar.c @@ -79,6 +79,7 @@ enum cmd_and_opt_values /* Compatibility with gpg-zip. */ oGpgArgs, oTarArgs, + oTarProgram, /* Debugging. */ oDryRun, @@ -122,6 +123,7 @@ static gpgrt_opt_t opts[] = { ARGPARSE_s_s (oGpgArgs, "gpg-args", "@"), ARGPARSE_s_s (oTarArgs, "tar-args", "@"), + ARGPARSE_s_s (oTarProgram, "tar", "@"), ARGPARSE_end () }; @@ -381,6 +383,9 @@ parse_arguments (gpgrt_argparse_t *pargs, gpgrt_opt_t *popts) } break; + case oTarProgram: /* Dummy option. */ + break; + case oTarArgs: { int tar_argc; @@ -414,6 +419,7 @@ parse_arguments (gpgrt_argparse_t *pargs, gpgrt_opt_t *popts) } } + /* gpgtar main. */ int |