From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20594 invoked by alias); 18 Mar 2014 20:18:28 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 20572 invoked by uid 48); 18 Mar 2014 20:18:24 -0000 From: "siddhesh at redhat dot com" To: glibc-bugs@sourceware.org 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 Date: Tue, 18 Mar 2014 20:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: siddhesh at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: siddhesh at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00129.txt.bz2 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.