From ae42bbc55a9e05976269026ddabcfb917f6e922f Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 17 Mar 2014 18:42:53 +0530 Subject: 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. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index eea2ef6dd7..da6a230500 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2014-03-17 Siddhesh Poyarekar + * 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. -- cgit 1.4.1