core: fix passing --proc-all-sigs to gpgtar

* src/engine-gpg.c: Pass --gpg-args before passing --proc-all-sigs
  if using gpgtar
--

GnuPG-Bug-ID: 7320
This commit is contained in:
Tobias Fella 2024-10-04 13:17:11 +02:00
parent 1a7bc88ee7
commit 227c9c763b
No known key found for this signature in database
GPG Key ID: F315CBBEE5E1889B

View File

@ -1020,6 +1020,8 @@ build_argv (engine_gpg_t gpg, const char *pgmname)
argc += 1 + !!gpg->flags.use_gpgtar;
if (gpg->flags.no_auto_check_trustdb)
argc += 1 + !!gpg->flags.use_gpgtar;
if (gpg->flags.proc_all_sigs && have_option_proc_all_sigs (gpg))
argc += 1 + !!gpg->flags.use_gpgtar;
if (gpg->pinentry_mode)
argc += 1 + !!gpg->flags.use_gpgtar;
if (!gpg->cmd.used)
@ -1260,6 +1262,16 @@ build_argv (engine_gpg_t gpg, const char *pgmname)
argc++;
if (gpg->flags.proc_all_sigs && have_option_proc_all_sigs (gpg))
{
if (gpg->flags.use_gpgtar)
{
argv[argc] = strdup ("--gpg-args");
if (!argv[argc])
{
err = gpg_error_from_syserror ();
goto leave;
}
argc++;
}
argv[argc] = strdup ("--proc-all-sigs");
if (!argv[argc])
{