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:
kientzle 2004-11-15 01:24:39 +00:00
parent ec1c3ebc3d
commit 70764b092d

View File

@ -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) {