Comment 3 for bug 1295366

Revision history for this message
Kovid Goyal (kovid) wrote :

And reading the man page for O_APPEND it states:

" O_APPEND
              The file is opened in append mode. Before each write(2), the file offset is positioned at the end of the file, as if with lseek(2)."

It specifically says that write() is affected by O_APPEND not truncate()