aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2018-12-05 07:44:59 +0000
committerWerner Koch <[email protected]>2018-12-05 07:56:13 +0000
commitc5aba093b86e7d69b34ddcf55130f8f21e889b5c (patch)
tree04c2655c31b877e409689b8dc00911b92308cfeb
parentgpg: New list-option "show-only-fpr-mbox". (diff)
downloadgnupg-c5aba093b86e7d69b34ddcf55130f8f21e889b5c.tar.gz
gnupg-c5aba093b86e7d69b34ddcf55130f8f21e889b5c.zip
g10: Fix print_pubkey_info new line output.
* g10/keylist.c (print_pubkey_info): Reverse the condition. -- This mistakes were introduced when replacing by estream. It resulted 'gpg --card-status' from a process with no controlling terminal fails. Fixes-commit: fb2ba98963beea249474f5d6d7345cf9b4b7f570 Signed-off-by: NIIBE Yutaka <[email protected]> (cherry picked from commit e154fba30ba0d5f29040a33f5c1b5c25b441b69f)
-rw-r--r--g10/keylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 81cab2530..66b03bb73 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -211,7 +211,7 @@ print_pubkey_info (ctrl_t ctrl, estream_t fp, PKT_public_key *pk)
else
p = get_user_id_native (ctrl, keyid);
- if (fp)
+ if (!fp)
tty_printf ("\n");
tty_fprintf (fp, "%s %s/%s %s %s\n",
pk->flags.primary? "pub":"sub",