From: Sergey Poznyakoff Date: Sun, 17 Nov 2013 15:35:01 +0000 (+0200) Subject: Fix star compatibility (sparse headers) X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=ca8cb48d02ed234418f5eda94118f04b8c4aa3dd;p=chaz%2Ftar Fix star compatibility (sparse headers) * src/sparse.c (star_get_sparse_info): Update file->dumped_size --- diff --git a/src/sparse.c b/src/sparse.c index 417d4ff..f0268f4 100644 --- a/src/sparse.c +++ b/src/sparse.c @@ -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)