gpg: Fix for overridden key import.

* g10/import.c (do_transfer): Force the overridden key import
even when smartcard is available.

--

Fixes-commit: 2c12970550
GnuPG-bug-id: 3456
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-04-25 13:47:49 +09:00
parent c03ba92576
commit 0ec10fbd0d
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 1 additions and 1 deletions

View File

@ -2958,7 +2958,7 @@ do_transfer (ctrl_t ctrl, kbnode_t keyblock, PKT_public_key *pk,
int force = 0;
int already_exist = agent_probe_secret_key (ctrl, pk);
if (already_exist == 2)
if (already_exist == 2 || already_exist == 4)
{
if (!opt.quiet)
log_info (_("key %s: card reference is overridden by key material\n"),