Pax extended headers were always failing
because the code was using the external API (archive_write_data) and assuming internal error-return conventions. Use the internal API for writing data. Thanks to: Joe Marcus Clarke
This commit is contained in:
parent
ec1c3ebc3d
commit
70764b092d
@ -674,7 +674,7 @@ archive_write_pax_header(struct archive *a,
|
||||
|
||||
oldstate = a->state;
|
||||
a->state = ARCHIVE_STATE_DATA;
|
||||
r = archive_write_data(a, pax->pax_header.s,
|
||||
r = (a->compression_write)(a, pax->pax_header.s,
|
||||
archive_strlen(&(pax->pax_header)));
|
||||
a->state = oldstate;
|
||||
if (r != ARCHIVE_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user