aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-06-21 13:02:20 +0000
committerJustus Winter <[email protected]>2017-06-21 13:06:04 +0000
commit890a3a70f2e1340d90c7f499358467979b182719 (patch)
treed2b362934641f4498b1155b13a57151c72d9b731 /g10/keylist.c
parentdirmngr: Properly handle SRV records. (diff)
downloadgnupg-890a3a70f2e1340d90c7f499358467979b182719.tar.gz
gnupg-890a3a70f2e1340d90c7f499358467979b182719.zip
gpg: Fix printing keyserver URLs and notation data.
* g10/keylist.c (show_keyserver_url): Print to 'fp', not to 'stdout'. (show_notation): Likewise. -- Fixes the fact that if mode == -1, all text except for the labels is written to the tty, but the label is written to stdout, which is buffered. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 4848bab64..e4d5d06f0 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -376,7 +376,7 @@ show_keyserver_url (PKT_signature * sig, int indent, int mode)
if (mode > 0)
log_info ("%s", str);
else
- tty_fprintf (es_stdout, "%s", str);
+ tty_fprintf (fp, "%s", str);
tty_print_utf8_string2 (fp, p, len, 0);
tty_fprintf (fp, "\n");
}
@@ -429,7 +429,7 @@ show_notation (PKT_signature * sig, int indent, int mode, int which)
if (mode > 0)
log_info ("%s", str);
else
- tty_fprintf (es_stdout, "%s", str);
+ tty_fprintf (fp, "%s", str);
/* This is all UTF8 */
tty_print_utf8_string2 (fp, nd->name, strlen (nd->name), 0);
tty_fprintf (fp, "=");