From 890a3a70f2e1340d90c7f499358467979b182719 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 21 Jun 2017 15:02:20 +0200 Subject: 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 --- g10/keylist.c | 4 ++-- 1 file 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, "="); -- cgit v1.2.3