tst-ftell-active-handler: Open file with O_TRUNC for w modes
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 4 Dec 2014 02:41:07 +0000 (08:11 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 4 Dec 2014 02:41:07 +0000 (08:11 +0530)
commit61b4f792e03facb456036b3f631d58d4f53b8075
tree9c7a8b641caf405210cafb8ad1d9837b45add0ed
parentbe349d7042de84c3c5157a5c1fbcad580aed33e1
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.
ChangeLog
libio/tst-ftell-active-handler.c