From 32043daaafcd59793b9addf7af1bcedb3b666f09 Mon Sep 17 00:00:00 2001 From: Frédéric Bérat Date: Fri, 28 Apr 2023 14:21:39 +0200 Subject: 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 --- io/tst-copy_file_range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io') 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; -- cgit 1.4.1