diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-03-17 18:42:53 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-03-17 21:24:02 +0530 |
commit | ae42bbc55a9e05976269026ddabcfb917f6e922f (patch) | |
tree | 3d5c26ff77263cada4610720a1ea591c63185b1d /ChangeLog | |
parent | ea33158c96c53a64402a772186956c1f5cb556ae (diff) | |
download | glibc-ae42bbc55a9e05976269026ddabcfb917f6e922f.tar glibc-ae42bbc55a9e05976269026ddabcfb917f6e922f.tar.gz glibc-ae42bbc55a9e05976269026ddabcfb917f6e922f.tar.bz2 glibc-ae42bbc55a9e05976269026ddabcfb917f6e922f.zip |
Change offset in fdopen only if setting O_APPEND
fdopen should only be allowed to change the offset in the file it
attaches to if it is setting O_APPEND. If O_APPEND is already set, it
should not change the state of the handle.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2014-03-17 Siddhesh Poyarekar <siddhesh@redhat.com> + * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if + setting O_APPEND. + * libio/tst-ftell-active-handler.c (do_append_test): Add a + test case. + [BZ #16680] * libio/fileops.c (_IO_file_open): Seek to end of file but don't cache the offset. |