]> Dogcows Code - chaz/tar/commitdiff
(extract_archive): Check reported size vs.
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 1 Dec 2003 21:19:37 +0000 (21:19 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 1 Dec 2003 21:19:37 +0000 (21:19 +0000)
archive file size to determine if we have to do with a
sparse file.

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.029531 seconds and 4 git commands to generate.