]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix mutual check in tar sparse handling 1541/head
authorSamanta Navarro <ferivoz@riseup.net>
Tue, 1 Jun 2021 11:26:30 +0000 (11:26 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Tue, 1 Jun 2021 11:26:45 +0000 (11:26 +0000)
commit87afe3146302a32f195b184eb9dad689037be6c5
tree7cc26ccc2ae9595cedf8117dc66ad8005d7f89cb
parent5bb998d869979140156bce59c0ff8f9063a25581
Fix mutual check in tar sparse handling

GNU.sparse.numbytes and GNU.sparse.offset both have to be set before
gnu_add_sparse_entry can be called.

The GNU.sparse.numbytes parser checks for tar->sparse_numbytes.
This has to be tar->sparse_offset instead to work just like the
GNU.sparse.offset parser.
libarchive/archive_read_support_format_tar.c