]> Dogcows Code - chaz/tar/blobdiff - src/sparse.c
(pax_sparse_member_p): Checking member size vs. file size is not reliable enough...
[chaz/tar] / 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.022473 seconds and 4 git commands to generate.