diff options
-rw-r--r-- | io/tst-copy_file_range.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io/tst-copy_file_range.c b/io/tst-copy_file_range.c index 3d531a1..3876332 100644 --- a/io/tst-copy_file_range.c +++ b/io/tst-copy_file_range.c @@ -759,8 +759,7 @@ do_test (void) } struct stat64 cstat; - xstat (path, &cstat); - if (cstat.st_dev == instat.st_dev) + if (stat (path, &cstat) != 0 || cstat.st_dev == instat.st_dev) { free (to_free); continue; |