From 5fc9fd125430db57f352f978867ac1dfb63bc1d0 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 30 Apr 2023 04:46:20 -0400 Subject: ustar: Fix trailer writing --- (limited to 'src') diff --git a/src/ustar.c b/src/ustar.c index f14a3d4..3c57ba5 100644 --- a/src/ustar.c +++ b/src/ustar.c @@ -363,7 +363,8 @@ opkg_opk_ustar_write_trailer(struct opkg_opk_ustar *ustar) if (opkg_opk_gzip_write(ustar->gzip, ustar->record, OPKG_OPK_USTAR_RECORD_SIZE, 0) != OPKG_OPK_OK || opkg_opk_gzip_write(ustar->gzip, ustar->record, - OPKG_OPK_USTAR_RECORD_SIZE, 0) != OPKG_OPK_OK) { + OPKG_OPK_USTAR_RECORD_SIZE, 1) != OPKG_OPK_END) + { return OPKG_OPK_ERROR; } return OPKG_OPK_OK; -- cgit v0.9.1