From owner-cvs-lib Tue Aug 13 10:50:06 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA00114 for cvs-lib-outgoing; Tue, 13 Aug 1996 10:50:06 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA29965; Tue, 13 Aug 1996 10:49:47 -0700 (PDT) Date: Tue, 13 Aug 1996 10:49:47 -0700 (PDT) From: Peter Wemm Message-Id: <199608131749.KAA29965@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/stdio refill.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/08/13 10:49:46 Modified: lib/libc/stdio refill.c Log: Fix nasty bracketing/precedence bug. Every time something read (and refilled) a file that was either line- or un-buffered, all files were flushed. According to the code comment, the flush (according to ANSI) is supposed to happen on write + line buffered output files, not _all_ files. Obtained from: OpenBSD / Theo de Raadt, possibly from proven@cygnus.com Revision Changes Path 1.4 +2 -2 src/lib/libc/stdio/refill.c