]> Dogcows Code - chaz/tar/commitdiff
Minor fix
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 1 Dec 2003 21:28:11 +0000 (21:28 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 1 Dec 2003 21:28:11 +0000 (21:28 +0000)
src/extract.c

index 29b8e9b4f1cf60cfe854fb65ee10108bd1899f06..84e4ecdd733f84579b1d7524676894adb526653d 100644 (file)
@@ -601,9 +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;
+  /*KLUDGE */
+  if (current_format == POSIX_FORMAT
+      && current_stat_info.archive_file_size != current_stat_info.stat.st_size)
+         typeflag = GNUTYPE_SPARSE;
   
   switch (typeflag)
     {
This page took 0.03672 seconds and 4 git commands to generate.