1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00

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 <justus@g10code.com>
This commit is contained in:
Justus Winter 2017-06-21 15:02:20 +02:00
parent 48aae8167d
commit 890a3a70f2
No known key found for this signature in database
GPG Key ID: DD1A52F9DA8C9020

View File

@ -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, "=");