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/16724] New: offset computation in ftell is incorrect when a read is followed by a write for files opened in a+ mode


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.


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