This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/17063] fclose() may fail to flush data


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]