mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01: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:
parent
48aae8167d
commit
890a3a70f2
@ -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, "=");
|
||||
|
Loading…
x
Reference in New Issue
Block a user