diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-14 19:46:28 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-14 19:46:28 +0000 |
commit | ed449b8ca7697d64ab3cfe8289287dd18566c91e (patch) | |
tree | 34541fbdd298c93db6f14d288da98321f69f2aa1 /source3/lib | |
parent | 548ca26bd56467f7dafaf277e4d42adeb54fb557 (diff) | |
download | samba-ed449b8ca7697d64ab3cfe8289287dd18566c91e.tar.gz samba-ed449b8ca7697d64ab3cfe8289287dd18566c91e.tar.bz2 samba-ed449b8ca7697d64ab3cfe8289287dd18566c91e.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.
(This used to be commit c23628746342b6afa28cb34b0b4eaa61189ad390)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/sysacls.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c index 02018a52b3..ba015e8f8d 100644 --- a/source3/lib/sysacls.c +++ b/source3/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) |