aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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