(pax_sparse_member_p): Checking member size vs. file size is not reliable enough. Use sparse_map_avail.

This commit is contained in:
Sergey Poznyakoff
2005-06-23 12:57:07 +00:00
parent 4bd38118e0
commit 2e9ea5f4a7

View File

@@ -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