bin/104295: freopen(NULL, ...) does bad things to file offset.

Andrey Chernov ache at FreeBSD.ORG
Wed Oct 18 05:40:23 PDT 2006


On Wed, Oct 11, 2006 at 05:30:22PM +0000, Ruslan Ermilov wrote:
>  I don't know the stdio code very well, but I tracked it down to
>  optimizations in _fseeko(); basically, freopen() calls

The problem revealed is more complex. See my final fix in v1.17. All those 
bugs was introduced in v1.11 (tjr) attempting to implement file == NULL 
POSIX handling, brokenness affects even normal file != NULL case when 
append (no seek). I write re@ asking for MFC aprovement, but not hear 
anything yet.

-- 
http://ache.pp.ru/


More information about the freebsd-bugs mailing list