This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/17063] fclose() may fail to flush data
- From: "siddhesh at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 23 Jun 2014 15:15:16 +0000
- Subject: [Bug stdio/17063] fclose() may fail to flush data
- Auto-submitted: auto-generated
- References: <bug-17063-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17063
--- Comment #3 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
(In reply to Paul Pluzhnikov from comment #2)
> This is quite end-user unfriendly behavior:
> - it's new ("broke" somewhere between glibc-2.15 and 2.19),
> - it's "broken" only for some, but not all, calls to output followed by
> input without intervening flush.
Yes, it broke when I wrote a new implementation of ftell. The earlier
implementation was essentially an alias for fseek (fp, 0, SEEK_CUR), which is
why it worked as an intermediate function to switch between reads and writes.
I didn't bother versioning the change because we explicitly forbid the
behaviour this bug relies on.
--
You are receiving this mail because:
You are on the CC list for the bug.