diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-11-15 01:24:39 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-11-15 01:24:39 +0000 |
commit | 70764b092dbdd3b3807974ce1761d50773530da8 (patch) | |
tree | 9a03d9cfc005f9282cd76c160e99dceac504ead1 /lib/libarchive/archive_write_set_format_pax.c | |
parent | ec1c3ebc3d9cfa9eb8961cf1117217702bb8d271 (diff) | |
download | FreeBSD-src-70764b092dbdd3b3807974ce1761d50773530da8.zip FreeBSD-src-70764b092dbdd3b3807974ce1761d50773530da8.tar.gz |
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
Diffstat (limited to 'lib/libarchive/archive_write_set_format_pax.c')
-rw-r--r-- | lib/libarchive/archive_write_set_format_pax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_write_set_format_pax.c b/lib/libarchive/archive_write_set_format_pax.c index a4e4f2a..94f3e65 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) { |