]> Dogcows Code - chaz/tar/commitdiff
Fix star compatibility (sparse headers)
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 17 Nov 2013 15:35:01 +0000 (17:35 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 17 Nov 2013 15:35:01 +0000 (17:35 +0200)
* src/sparse.c (star_get_sparse_info): Update file->dumped_size

src/sparse.c

index 417d4ff0aa37aca0c39550e77e9f6e62e39c7355..f0268f4b554bb097c883f7078b831d685d236ba8 100644 (file)
@@ -809,6 +809,7 @@ star_get_sparse_info (struct tar_sparse_file *file)
       set_next_block_after (h);
       for (i = 0; i < SPARSES_IN_STAR_EXT_HEADER && rc == add_ok; i++)
        rc = oldgnu_add_sparse (file, &h->star_ext_header.sp[i]);
+      file->dumped_size += BLOCKSIZE;
     }
 
   if (rc == add_fail)
This page took 0.019546 seconds and 4 git commands to generate.