]> git.ipfire.org Git - pakfire.git/commitdiff
files: Fix iterating over extended attributes
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Mar 2023 15:14:27 +0000 (15:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Mar 2023 15:17:47 +0000 (15:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/file.c

index a43ad616148ac08205aef3e0194bd5865ba8e3b5..b1f939550a94cbd06a5665b3b7c1748387879192 100644 (file)
@@ -158,6 +158,8 @@ static int pakfire_file_from_archive_entry(struct pakfire_file* file, struct arc
        pakfire_file_set_ctime(file, archive_entry_ctime(entry));
        pakfire_file_set_mtime(file, archive_entry_mtime(entry));
 
+       archive_entry_xattr_reset(entry);
+
        // Read any extended attributes
        while (archive_entry_xattr_next(entry, &attr, &value, &size) == ARCHIVE_OK) {
                // Digest: SHA-3-512