--- libarchive/archive_disk_acl_darwin.orig 2026-08-08 00:23:03.000000000 -0600 +++ libarchive/archive_disk_acl_darwin.c 2026-08-08 00:25:45.000000000 -0600 @@ -42,6 +42,8 @@ #ifdef HAVE_SYS_ACL_H #define _ACL_PRIVATE /* For debugging */ #include +/* Detect that Mac OS X 10.4 ACL support does not have acl_set_link_np */ +#include #endif #include "archive_entry.h" @@ -473,6 +475,11 @@ ret = ARCHIVE_WARN; } } +/* Mac OS X 10.4 does not support setting ACLs on symlinks */ +/* Reference: https://www.shoup.net/xbup/doc.pdf */ +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050 + } +#else } else if (acl_set_link_np(name, ACL_TYPE_EXTENDED, acl) != 0) { if (errno == EOPNOTSUPP) { /* Filesystem doesn't support ACLs */ @@ -483,6 +490,7 @@ ret = ARCHIVE_WARN; } } +#endif exit_free: acl_free(acl); return (ret);