Bläddra i källkod

(sparse_scan_file): Fix another bug, introduced yesterday: Initialize
archive_file_size to 0. The variable keeps size of the file *as stored
in the archive*, not the size reported by stat.

Sergey Poznyakoff 20 år sedan
förälder
incheckning
225e690142
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      src/sparse.c

+ 2 - 0
src/sparse.c

@@ -217,6 +217,8 @@ sparse_scan_file (struct tar_sparse_file *file)
   if (!lseek_or_error (file, 0))
     return false;
 
+  st->archive_file_size = 0;
+  
   if (!tar_sparse_scan (file, scan_begin, NULL))
     return false;