5.2.0 printf bugs
Doug Gwyn <gwyn>
gwyn at brl-tgr.ARPA
Mon Jul 29 11:21:08 AEST 1985
Some time ago, I posted bug fixes for UNIX System V Release 2.0
*printf.c sources, involving changing a bogus | bit-test into an &.
I just discovered that these fixes were incomplete; there were TWO
such coding errors per source file, and I had missed the second.
For example, from fprintf.c:
/* @(#)fprintf.c 1.5 */
...
if (!(iop->_flag & _IOWRT)) { /* DAG -- bug fix (was |) */
...
if (iop->_flag & _IORW) { /* DAG -- bug fix (was |) */
...
These are in addition to the bug fixes posted by Phil Chadwick,
which I believe are correct (but I'm still looking at them).
All BRL UNIX System V emulation for 4.2BSD packages mailed before
today (not to mention real UNIX System V systems) have these bugs..
More information about the Net.bugs.usg
mailing list