]> git.ipfire.org Git - pakfire.git/commitdiff
compress: Always clear any extended attributes on extraction
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 1 Nov 2022 13:17:39 +0000 (13:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 1 Nov 2022 13:17:39 +0000 (13:17 +0000)
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 <michael.tremer@ipfire.org>
src/libpakfire/compress.c

index a171b7f869b552cc9ac508ba55252561df0447ef..347ec13ef5d2482f77276223a91c503870882089 100644 (file)
@@ -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: