From ef50bffc710300eb6445d1fde790f57f74668b49 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 12 Jun 2019 12:54:11 +0200 Subject: [PATCH] core: Use fully correct command args for gpg --verify. * src/engine-gpg.c (gpg_verify): Supply --verify for fixed gpg versions. -- With 2.1.something we print a warning if no explict command was given. Since 2.1.16 this has been fixed to also allow the combination of --verify and --output. Thus we now always use "--verify". Signed-off-by: Werner Koch --- src/engine-gpg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine-gpg.c b/src/engine-gpg.c index cce80d8d..cc0fb556 100644 --- a/src/engine-gpg.c +++ b/src/engine-gpg.c @@ -3278,6 +3278,8 @@ gpg_verify (void *engine, gpgme_data_t sig, gpgme_data_t signed_text, err = add_arg (gpg, "-"); if (!err) err = add_input_size_hint (gpg, sig); + if (!err && have_gpg_version (gpg, "2.1.16")) + err = add_arg (gpg, "--verify"); if (!err) err = add_arg (gpg, "--"); if (!err)