From 6400ae85eeaa810743cbb46da184ea068a9934a9 Mon Sep 17 00:00:00 2001 From: Ned Bass Date: Fri, 15 Apr 2016 18:55:03 +0000 Subject: [PATCH] Fix ZPL miswrite of default POSIX ACL Commit 4967a3e introduced a typo that caused the ZPL to store the intended default ACL as an access ACL. Due to caching this problem may not become visible until the filesystem is remounted or the inode is evicted from the cache. Fix the typo. Signed-off-by: Ned Bass Signed-off-by: Brian Behlendorf Signed-off-by: Chunwei Chen Closes #4520 --- module/zfs/zpl_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zpl_xattr.c b/module/zfs/zpl_xattr.c index 8780480aeb..1a15d4d619 100644 --- a/module/zfs/zpl_xattr.c +++ b/module/zfs/zpl_xattr.c @@ -975,7 +975,7 @@ zpl_set_acl(struct inode *ip, int type, struct posix_acl *acl) break; case ACL_TYPE_DEFAULT: - name = XATTR_NAME_POSIX_ACL_ACCESS; + name = XATTR_NAME_POSIX_ACL_DEFAULT; if (!S_ISDIR(ip->i_mode)) return (acl ? -EACCES : 0); break;