From a751651e6d0fa30b88f367c059838771e685493e Mon Sep 17 00:00:00 2001 From: trasz Date: Fri, 4 Mar 2011 17:23:10 +0000 Subject: 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 --- lib/libc/posix1e/acl_strip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/posix1e') diff --git a/lib/libc/posix1e/acl_strip.c b/lib/libc/posix1e/acl_strip.c index c4065d6..c0b0ff3 100644 --- a/lib/libc/posix1e/acl_strip.c +++ b/lib/libc/posix1e/acl_strip.c @@ -141,7 +141,7 @@ acl_strip_np(const acl_t aclp, int recalculate_mask) { 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)); -- cgit v1.1