You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2006/11/14 00:12:37 UTC
DO NOT REPLY [Bug 40963] - apr_file_trunc screws up file offset on Unix.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40963>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40963
------- Additional Comments From nikke@acc.umu.se 2006-11-13 15:12 -------
Ahem.
It seems that it's apr_file_seek that's broken when buffering is enabled.
Doing:
read file
seek to beginning
write new contents to file
when buffering is enabled acts like I would have left out the seek.
Opening the file without buffering acts as expected, ie the new contents
overwrites the old contents.
Ouch?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.