diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-04-28 14:21:39 +0200 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-01 12:45:13 -0400 |
commit | 32043daaafcd59793b9addf7af1bcedb3b666f09 (patch) | |
tree | 2be44a97aaee5d057b630e885c384bde05b70ea5 /io | |
parent | 026a84a54d3b6c23b999b793e2a6f8ecd211e3b8 (diff) | |
download | glibc-32043daaafcd59793b9addf7af1bcedb3b666f09.tar.gz glibc-32043daaafcd59793b9addf7af1bcedb3b666f09.tar.xz glibc-32043daaafcd59793b9addf7af1bcedb3b666f09.zip |
tests: replace ftruncate by xftruncate
With fortification enabled, ftruncate calls return result needs to be checked, has it gets the __wur macro enabled. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'io')
-rw-r--r-- | io/tst-copy_file_range.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/tst-copy_file_range.c b/io/tst-copy_file_range.c index d1f3aaa5a9..bd64e9c42b 100644 --- a/io/tst-copy_file_range.c +++ b/io/tst-copy_file_range.c @@ -166,7 +166,7 @@ short_copy (void) inoff = 3; xlseek (infd, shift, SEEK_SET); } - ftruncate (outfd, 0); + xftruncate (outfd, 0); xlseek (outfd, 0, SEEK_SET); outoff = 0; |