aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-08-20 14:11:58 +0000
committerWerner Koch <[email protected]>2020-08-20 14:11:58 +0000
commitba873216ff999d45680b7aed0713d7e65c2e7d2f (patch)
treecf726087f1defef7a95d77e1bab0cc3dc9fbdd39
parentgpgtar: Make --files-from and --null work as described. (diff)
downloadgnupg-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.texi5
-rw-r--r--tools/gpgtar.c6
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