From: Benoit Pierre Date: Sat, 21 Mar 2026 11:36:09 +0000 (+0100) Subject: fix `archive_entry_set_mode` & `archive_entry_set_perm` X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f30d7fe833e891337df17089ac0e5dda8feb4ddb;p=thirdparty%2Flibarchive.git fix `archive_entry_set_mode` & `archive_entry_set_perm` Match the prototypes in `archive_entry.h`: use `__LA_MODE_T` (which is not always an alias for `mode_t`). --- diff --git a/libarchive/archive_entry.c b/libarchive/archive_entry.c index dc74430f8..90cf5cc82 100644 --- a/libarchive/archive_entry.c +++ b/libarchive/archive_entry.c @@ -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;