Author: trasz
Date: Fri Mar  4 17:23:10 2011
New Revision: 219268
URL: http://svn.freebsd.org/changeset/base/219268

Log:
  Make acl_strip_np(3) use new trivial ACL format for NFSv4 ACls (three
  entries instead of six).  This makes "setfacl -b" do the right thing
  for ACLs on ZFS.  UFS recognizes both kinds of trivial ACLs; no change
  there.
  
  MFC after:    2 months

Modified:
  head/lib/libc/posix1e/acl_strip.c

Modified: head/lib/libc/posix1e/acl_strip.c
==============================================================================
--- head/lib/libc/posix1e/acl_strip.c   Fri Mar  4 17:10:39 2011        
(r219267)
+++ head/lib/libc/posix1e/acl_strip.c   Fri Mar  4 17:23:10 2011        
(r219268)
@@ -141,7 +141,7 @@ acl_strip_np(const acl_t aclp, int recal
 {
        switch (_acl_brand(aclp)) {
        case ACL_BRAND_NFS4:
-               return (_nfs4_acl_strip_np(aclp, 1));
+               return (_nfs4_acl_strip_np(aclp, 0));
 
        case ACL_BRAND_POSIX:
                return (_posix1e_acl_strip_np(aclp, recalculate_mask));
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to