Fix star compatibility (sparse headers)

* src/sparse.c (star_get_sparse_info): Update file->dumped_size
This commit is contained in:
Sergey Poznyakoff
2013-11-17 17:35:01 +02:00
parent b4afdd0e28
commit ca8cb48d02

View 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)