]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix `archive_entry_set_mode` & `archive_entry_set_perm` 2942/head
authorBenoit Pierre <benoit.pierre@gmail.com>
Sat, 21 Mar 2026 11:36:09 +0000 (12:36 +0100)
committerBenoit Pierre <benoit.pierre@gmail.com>
Thu, 16 Apr 2026 18:15:27 +0000 (20:15 +0200)
Match the prototypes in `archive_entry.h`: use `__LA_MODE_T` (which is not always an alias for `mode_t`).

libarchive/archive_entry.c

index dc74430f80aa5f3d56d0690d733539b58dabb0d7..90cf5cc829ea2b0df619315ab9db868aa3c32047 100644 (file)
@@ -1239,7 +1239,7 @@ _archive_entry_copy_link_l(struct archive_entry *entry,
 }
 
 void
-archive_entry_set_mode(struct archive_entry *entry, mode_t m)
+archive_entry_set_mode(struct archive_entry *entry, __LA_MODE_T m)
 {
        entry->stat_valid = 0;
        entry->acl.mode = m;
@@ -1314,7 +1314,7 @@ _archive_entry_copy_pathname_l(struct archive_entry *entry,
 }
 
 void
-archive_entry_set_perm(struct archive_entry *entry, mode_t p)
+archive_entry_set_perm(struct archive_entry *entry, __LA_MODE_T p)
 {
        entry->stat_valid = 0;
        entry->acl.mode &= AE_IFMT;