From: Michael Tremer Date: Tue, 1 Nov 2022 13:17:39 +0000 (+0000) Subject: compress: Always clear any extended attributes on extraction X-Git-Tag: 0.9.28~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89ee08336d882600db9528e01aad81f688a8ddb1;p=pakfire.git compress: Always clear any extended attributes on extraction We use those attributes in the tarball, but we don't want them to be extracted to disk for now. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/compress.c b/src/libpakfire/compress.c index a171b7f86..347ec13ef 100644 --- a/src/libpakfire/compress.c +++ b/src/libpakfire/compress.c @@ -727,6 +727,10 @@ static int __pakfire_extract(struct pakfire* pakfire, struct archive* a, DEBUG(pakfire, "Extracting %s\n", path); + // Remove any extended attributes which we never write to disk + archive_entry_xattr_clear(entry); + + // Write payload r = archive_read_extract2(data->archive, entry, data->writer); switch (r) { case ARCHIVE_OK: