patch for posix ACL on FreeBSD5

Alex Deiter tiamat at komi.mts.ru
Sat May 17 16:04:18 GMT 2003


Hi!

configure checks (after alpha22) does not find posix ACL on FreeBSD 5.X:

# ./configure - with-acl-support
...
checking whether to support ACLs... checking for acl_get_file in -lacl... no
checking for ACL support... no
...

acl_get_perm_np, acl_get_entry and acl_get_file present in standard C
library (-lc).

patch:

--- configure.in.orig   Thu May 15 08:17:54 2003
+++ configure.in        Sat May 17 16:56:42 2003
@@ -3211,6 +3211,11 @@
                AC_DEFINE(HAVE_TRU64_ACLS,1,[Whether Tru64 ACLs are
available])
                ACLLIBS="$ACLLIBS -lpacl"
                ;;
+       *freebsd5*)
+               AC_MSG_RESULT(Using posix ACLs)
+               AC_DEFINE(HAVE_POSIX_ACLS,1,[Whether POSIX ACLs are
available])
+               AC_DEFINE(HAVE_ACL_GET_PERM_NP,1,[Whether acl_get_perm_np()
is available])
+               ;;
         *)
                AC_CHECK_LIB(acl,acl_get_file,[ACLLIBS="$ACLLIBS -lacl"])
                AC_CACHE_CHECK([for ACL support],samba_cv_HAVE_POSIX_ACLS,[

Thanks!







More information about the samba-technical mailing list