From 5c79ebdbd7467ef9286080ac83a0b92885d513aa Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 15 Nov 2004 01:24:39 +0000 Subject: [PATCH] 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 --- lib/libarchive/archive_write_set_format_pax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libarchive/archive_write_set_format_pax.c b/lib/libarchive/archive_write_set_format_pax.c index a4e4f2a9f71a..94f3e6578aec 100644 --- a/lib/libarchive/archive_write_set_format_pax.c +++ b/lib/libarchive/archive_write_set_format_pax.c @@ -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) {