瀏覽代碼

Minor fix

Sergey Poznyakoff 21 年之前
父節點
當前提交
5f32345fe6
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/extract.c

+ 4 - 3
src/extract.c

@@ -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)
     {