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:
Tim Kientzle 2004-11-15 01:24:39 +00:00
parent bfa307a39c
commit 5c79ebdbd7

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