mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-22 14:57:02 +01:00
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> (cherry picked from commit e154fba30ba0d5f29040a33f5c1b5c25b441b69f)
This commit is contained in:
parent
9b53845168
commit
c5aba093b8
@ -211,7 +211,7 @@ print_pubkey_info (ctrl_t ctrl, estream_t fp, PKT_public_key *pk)
|
|||||||
else
|
else
|
||||||
p = get_user_id_native (ctrl, keyid);
|
p = get_user_id_native (ctrl, keyid);
|
||||||
|
|
||||||
if (fp)
|
if (!fp)
|
||||||
tty_printf ("\n");
|
tty_printf ("\n");
|
||||||
tty_fprintf (fp, "%s %s/%s %s %s\n",
|
tty_fprintf (fp, "%s %s/%s %s %s\n",
|
||||||
pk->flags.primary? "pub":"sub",
|
pk->flags.primary? "pub":"sub",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user