about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-12-04 08:11:07 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-12-04 08:11:07 +0530
commit61b4f792e03facb456036b3f631d58d4f53b8075 (patch)
tree9c7a8b641caf405210cafb8ad1d9837b45add0ed /ChangeLog
parentbe349d7042de84c3c5157a5c1fbcad580aed33e1 (diff)
downloadglibc-61b4f792e03facb456036b3f631d58d4f53b8075.tar.gz
glibc-61b4f792e03facb456036b3f631d58d4f53b8075.tar.xz
glibc-61b4f792e03facb456036b3f631d58d4f53b8075.zip
tst-ftell-active-handler: Open file with O_TRUNC for w modes
The test case fails to truncate the file when a file is intended to be
opened in w or w+ mode.  Add O_TRUNC to fix this.  The test still
succeeds with this change.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 83048e1c34..1bd4b23dc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2914-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
+	O_TRUNC flag for w and w+ modes.
+	(do_rewind_test): Likewise.
+	(do_ftell_test): Likewise.
+	(do_write_test): Likewise.
+
 	[BZ #17647]
 	* libio/fileops.c (do_ftell): Seek only when there are
 	unflushed writes.