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 <wk@gnupg.org>
This commit is contained in:
parent
3b32f7a97f
commit
ef50bffc71
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user