Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.bugs.usg Subject: 5.2.0 printf bugs Message-ID: <229@brl-tgr.ARPA> Date: Sun, 28-Jul-85 21:21:08 EDT Article-I.D.: brl-tgr.229 Posted: Sun Jul 28 21:21:08 1985 Date-Received: Wed, 31-Jul-85 04:17:51 EDT Distribution: net Organization: Ballistic Research Lab Lines: 19 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..