]> git.ipfire.org Git - thirdparty/glibc.git/commit
libio: use stdout in puts and putchar, etc [BZ #24051].
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Tue, 1 Jan 2019 03:14:28 +0000 (19:14 -0800)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 31 Jan 2019 22:07:45 +0000 (14:07 -0800)
commit5f10701fdc7a4708101f7931c15b7146c4f06690
tree826e0575534318f16626af321a3c88cdd2761dfd
parent583dd860d5b833037175247230a328f0050dbfe9
libio: use stdout in puts and putchar, etc [BZ #24051].

GLIBC explicitly allows one to assign a new FILE pointer to stdout and
other standard streams.  printf and wprintf were honouring assignment to
stdout and using the new value, but puts, putchar, and wide char variants
did not.

The stdout part is fixed here.  The stdin part will be fixed in a followup.
ChangeLog
libio/Makefile
libio/fileops.c
libio/ioputs.c
libio/putchar.c
libio/putchar_u.c
libio/putwchar.c
libio/putwchar_u.c
libio/tst-bz24051.c [new file with mode: 0644]
libio/wfileops.c