mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-22 14:57:02 +01:00
gpg: Fix for overridden key import.
* g10/import.c (do_transfer): Force the overridden key import even when smartcard is available. -- Cherry picked from 2.4 branch: 0ec10fbd0d4007997cec59da9a514797bc0531a8 Fixes-commit: 2c1297055041b4657ea1a927acac978c2b09a483 GnuPG-bug-id: 3456 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
383d524239
commit
8a1e123a36
@ -2839,7 +2839,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"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user