]> Dogcows Code - chaz/tar/blobdiff - src/extract.c
(extract_archive): Check reported size vs.
[chaz/tar] / src / extract.c
index 1731b3a8237e976af3c085dbbedac8d4a4438774..29b8e9b4f1cf60cfe854fb65ee10108bd1899f06 100644 (file)
@@ -601,6 +601,10 @@ extract_archive (void)
   /* Extract the archive entry according to its type.  */
 
   typeflag = current_header->header.typeflag;
+  /*KLUDGE*/
+  if (current_stat_info.archive_file_size != current_stat_info.stat.st_size)
+    typeflag = GNUTYPE_SPARSE;
+  
   switch (typeflag)
     {
     case GNUTYPE_SPARSE:
This page took 0.020685 seconds and 4 git commands to generate.