Explorar el Código

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

Sergey Poznyakoff hace 20 años
padre
commit
2e9ea5f4a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/sparse.c

+ 1 - 1
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