Date: Wed, 18 Oct 2006 16:40:18 +0400 From: Andrey Chernov <ache@FreeBSD.ORG> To: Ruslan Ermilov <ru@FreeBSD.ORG> Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/104295: freopen(NULL, ...) does bad things to file offset. Message-ID: <20061018124018.GA54280@nagual.pp.ru> In-Reply-To: <200610111730.k9BHUMH4085536@freefall.freebsd.org> References: <200610111730.k9BHUMH4085536@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061018124018.GA54280>