From 2e9ea5f4a775e25267ff6892f98f491c7f4a21cd Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 23 Jun 2005 12:57:07 +0000 Subject: [PATCH] (pax_sparse_member_p): Checking member size vs. file size is not reliable enough. Use sparse_map_avail. --- src/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparse.c b/src/sparse.c index 1d18b20..0955248 100644 --- a/src/sparse.c +++ b/src/sparse.c @@ -845,7 +845,7 @@ static struct tar_sparse_optab const star_optab = { static bool pax_sparse_member_p (struct tar_sparse_file *file) { - return file->stat_info->archive_file_size != file->stat_info->stat.st_size; + return file->stat_info->sparse_map_avail > 0; } static bool -- 2.44.0