From: Ralph Boehme Date: Mon, 14 Dec 2020 09:07:04 +0000 (+0100) Subject: vfs_aixacl2: handle pathref fsps in aixjfs2_sys_acl_set_fd() X-Git-Tag: samba-4.14.0rc1~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee0a6d228abf6d3f49c2c0f10de4eb705f914731;p=thirdparty%2Fsamba.git vfs_aixacl2: handle pathref fsps in aixjfs2_sys_acl_set_fd() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_aixacl2.c b/source3/modules/vfs_aixacl2.c index dd9de98c957..92759a73bcd 100644 --- a/source3/modules/vfs_aixacl2.c +++ b/source3/modules/vfs_aixacl2.c @@ -533,6 +533,18 @@ int aixjfs2_sys_acl_set_fd(vfs_handle_struct *handle, if (!acl_aixc) return -1; + if (fsp->fsp_flags.is_pathref) { + /* + * This is no longer a handle based call. + */ + return aclx_put(fsp->fsp_name->base_name, + SET_ACL, + acl_type_info, + acl_aixc, + acl_aixc->acl_len, + 0); + } + rc = aclx_fput( fsp_get_io_fd(fsp), SET_ACL, /* set only the ACL, not mode bits */