From: Sergey Poznyakoff Date: Thu, 23 Jun 2005 12:57:07 +0000 (+0000) Subject: (pax_sparse_member_p): Checking member size vs. file size is not reliable enough... X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=commitdiff_plain;h=2e9ea5f4a775e25267ff6892f98f491c7f4a21cd (pax_sparse_member_p): Checking member size vs. file size is not reliable enough. Use sparse_map_avail. --- 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