From: Michael Tremer Date: Fri, 16 Sep 2022 13:25:57 +0000 (+0000) Subject: compress: Read path again on extraction X-Git-Tag: 0.9.28~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07c1c6e0cb0012ee89b43d5b6b1c4e0da8eab39b;p=pakfire.git compress: Read path again on extraction The former pointer was invalid and we logged invalid data. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/compress.c b/src/libpakfire/compress.c index 3eefcea18..1c7c38a3b 100644 --- a/src/libpakfire/compress.c +++ b/src/libpakfire/compress.c @@ -722,6 +722,9 @@ static int __pakfire_extract(struct pakfire* pakfire, struct archive* a, // Create file & extract payload if (data->writer) { + // Fetch path again since we changed it + path = archive_entry_pathname(entry); + DEBUG(pakfire, "Extracting %s\n", path); r = archive_read_extract2(data->archive, entry, data->writer);