]> Dogcows Code - chaz/tar/commitdiff
(pax_sparse_member_p): Checking member size vs. file size is not reliable enough...
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 23 Jun 2005 12:57:07 +0000 (12:57 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 23 Jun 2005 12:57:07 +0000 (12:57 +0000)
src/sparse.c

index 1d18b20d78d269a9703b24476e3ab74499441f8b..0955248c492a9e75cb767edd81d17693cfde9bb0 100644 (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
This page took 0.025195 seconds and 4 git commands to generate.