Browse Source

(diff_archive): Use is_sparse member instead of GNUTYPE_SPARSE.

Sergey Poznyakoff 21 năm trước cách đây
mục cha
commit
be48ff0699
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/compare.c

+ 1 - 1
src/compare.c

@@ -279,7 +279,7 @@ diff_archive (void)
 
       /* Need to treat sparse files completely differently here.  */
 
-      if (current_header->header.typeflag == GNUTYPE_SPARSE)
+      if (current_stat_info.is_sparse)
 	sparse_diff_file (diff_handle, &current_stat_info);
       else
 	{