From 40dd4deb4d5d8528f12275108f66421f48f14061 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 26 Jan 2020 10:35:40 +0100 Subject: [PATCH] unpack: really skip current data on archive with noextract. --- lib/package_unpack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/package_unpack.c b/lib/package_unpack.c index cc09aa66..c0577c21 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -309,9 +309,11 @@ unpack_archive(struct xbps_handle *xhp, * Skip files that match noextract patterns from configuration file. */ if (xhp->noextract && xbps_patterns_match(xhp->noextract, entry_pname+1)) { + xbps_dbg_printf(xhp, "[unpack] %s skipped (matched by a pattern)\n", entry_pname+1); xbps_set_cb_state(xhp, XBPS_STATE_UNPACK_FILE_PRESERVED, 0, pkgver, "%s: file `%s' won't be extracted, " "it matches a noextract pattern.", pkgver, entry_pname); + archive_read_data_skip(ar); continue; } /*