summaryrefslogtreecommitdiffstats
path: root/source/lib/sysacls.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-14 19:30:51 +0000
committerJeremy Allison <jra@samba.org>2001-04-14 19:30:51 +0000
commit907cf4735168ca217a85532e733fe6dbead69e7c (patch)
tree20dc6d772e78abfbec3e06ba7d081a9d5b27dccc /source/lib/sysacls.c
parent1ca1d2cc96f40ad7b1009fed791ebc8b81c73bb0 (diff)
downloadsamba-907cf4735168ca217a85532e733fe6dbead69e7c.tar.gz
samba-907cf4735168ca217a85532e733fe6dbead69e7c.tar.xz
samba-907cf4735168ca217a85532e733fe6dbead69e7c.zip
Added POSIX_ACL support for *BSD. Patch from jedgar@fxp.org. Changed
a bit to use AC_TRY_LINK to ensure functions are available for link instead of AC_TRY_COMPILE. Jeremy.
Diffstat (limited to 'source/lib/sysacls.c')
-rw-r--r--source/lib/sysacls.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lib/sysacls.c b/source/lib/sysacls.c
index 02018a52b37..ba015e8f8d1 100644
--- a/source/lib/sysacls.c
+++ b/source/lib/sysacls.c
@@ -113,7 +113,16 @@ int sys_acl_add_perm( SMB_ACL_PERMSET_T permset, SMB_ACL_PERM_T perm)
int sys_acl_get_perm( SMB_ACL_PERMSET_T permset, SMB_ACL_PERM_T perm)
{
+#if defined(HAVE_ACL_GET_PERM_NP)
+ /*
+ * Required for TrustedBSD-based ACL implementations where
+ * non-POSIX.1e functions are denoted by a _np (non-portable)
+ * suffix.
+ */
+ return acl_get_perm_np(permset, perm);
+#else
return acl_get_perm(permset, perm);
+#endif
}
char *sys_acl_to_text( SMB_ACL_T the_acl, ssize_t *plen)