From 37b7b5be65f1a9075b18a1d6a05f22a95bb51604 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Tue, 11 Aug 2009 11:14:32 -0400 Subject: [PATCH] Fix cpio symlink tests on FreeBSD; the link-sensitive ACL routines weren't being properly configured, which was causing the regular Posix mode bits to get overwritten. SVN-Revision: 1357 --- CMakeLists.txt | 4 ++++ build/cmake/config.h.in | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d988350ec..b81f795c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -621,6 +621,10 @@ IF(ENABLE_ACL) "sys/types.h;sys/acl.h" HAVE_ACL_GET_PERM) CHECK_SYMBOL_EXISTS(acl_get_perm_np "sys/types.h;sys/acl.h" HAVE_ACL_GET_PERM_NP) + CHECK_SYMBOL_EXISTS(acl_get_link + "sys/types.h;sys/acl.h" HAVE_ACL_GET_LINK) + CHECK_SYMBOL_EXISTS(acl_get_link_np + "sys/types.h;sys/acl.h" HAVE_ACL_GET_LINK_NP) # MacOS has an acl.h that isn't POSIX. It can be detected by # checking for ACL_USER diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index 988d360ee..d64c4cf2f 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -9,6 +9,12 @@ /* Define to 1 if you have the `acl_create_entry' function. */ #cmakedefine HAVE_ACL_CREATE_ENTRY 1 +/* Define to 1 if you have the `acl_get_link' function. */ +#cmakedefine HAVE_ACL_GET_LINK 1 + +/* Define to 1 if you have the `acl_get_link_np' function. */ +#cmakedefine HAVE_ACL_GET_LINK_NP 1 + /* Define to 1 if you have the `acl_get_perm' function. */ #cmakedefine HAVE_ACL_GET_PERM 1 -- 2.47.3