This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/16724] New: offset computation in ftell is incorrect when a read is followed by a write for files opened in a+ mode
- From: "siddhesh at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 18 Mar 2014 20:18:23 +0000
- Subject: [Bug stdio/16724] New: offset computation in ftell is incorrect when a read is followed by a write for files opened in a+ mode
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16724
Bug ID: 16724
Summary: offset computation in ftell is incorrect when a read
is followed by a write for files opened in a+ mode
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: stdio
Assignee: siddhesh at redhat dot com
Reporter: siddhesh at redhat dot com
ftell reports an incorrect offset when a file opened in a+ mode is first read
from and then written to. This is because the assumption of _IO_read_end
coinciding with the external file position is not correct when O_APPEND is in
effect.
Fix coming up.
--
You are receiving this mail because:
You are on the CC list for the bug.