diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2018-12-05 08:44:59 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2018-12-05 08:44:59 +0100 |
commit | e154fba30ba0d5f29040a33f5c1b5c25b441b69f (patch) | |
tree | 1e926899dcd990ea63a8d569fcb0ac65f6304617 /g10 | |
parent | wks: Fix filter expression syntax flaw. (diff) | |
download | gnupg2-e154fba30ba0d5f29040a33f5c1b5c25b441b69f.tar.xz gnupg2-e154fba30ba0d5f29040a33f5c1b5c25b441b69f.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 <gniibe@fsij.org>
Diffstat (limited to 'g10')
-rw-r--r-- | g10/keylist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 92a8d4cbb..0b8aa88cd 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -212,7 +212,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", |