aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-10-19 15:12:36 +0000
committerWerner Koch <[email protected]>2017-10-19 15:12:36 +0000
commit2c7dccca9b617780a3ea760adf460bb3b77f90f3 (patch)
tree87aa0ba05a5dc9dbac1c6013d3bd3910f4282041 /g10/import.c
parentgpg: Make --dry-run and show-only work for secret keys. (diff)
downloadgnupg-2c7dccca9b617780a3ea760adf460bb3b77f90f3.tar.gz
gnupg-2c7dccca9b617780a3ea760adf460bb3b77f90f3.zip
gpg: Print sec/sbb with --import-option import-show or show-only.
* g10/import.c (import_one): Pass FROM_SK to list_keyblock_direct. -- Note that this will likely add the suffix '#' top "sec" because the secret key has not yet (or will not be) imported. If the secret key already exists locally another suffix might be printed. The upshot is that the suffix has no usefulness. GnuPG-bug-id: 3431 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/import.c')
-rw-r--r--g10/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/import.c b/g10/import.c
index 255e48fb2..71e39557c 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1778,7 +1778,7 @@ import_one (ctrl_t ctrl,
merge_keys_done = 1;
/* Note that we do not want to show the validity because the key
* has not yet imported. */
- list_keyblock_direct (ctrl, keyblock, 0, 0,
+ list_keyblock_direct (ctrl, keyblock, from_sk, 0,
opt.fingerprint || opt.with_fingerprint, 1);
es_fflush (es_stdout);
}