From: Ralph Boehme Date: Mon, 14 Dec 2020 09:04:15 +0000 (+0100) Subject: vfs_aixacl: handle pathref fsps in aixacl_sys_acl_set_fd() X-Git-Tag: samba-4.14.0rc1~213 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4c2f867f035fcbe3d547d5635d058b0aec7636a;p=thirdparty%2Fsamba.git vfs_aixacl: handle pathref fsps in aixacl_sys_acl_set_fd() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_aixacl.c b/source3/modules/vfs_aixacl.c index 149c2f86d15..833d8b47fef 100644 --- a/source3/modules/vfs_aixacl.c +++ b/source3/modules/vfs_aixacl.c @@ -166,6 +166,15 @@ int aixacl_sys_acl_set_fd(vfs_handle_struct *handle, if (!file_acl) return -1; + if (fsp->fsp_flags.is_pathref) { + /* + * This is no longer a handle based call. + */ + return = chacl(fsp->fsp_name->base_name, + file_acl, + file_acl->acl_len); + } + rc = fchacl(fsp_get_io_fd(fsp),file_acl,file_acl->acl_len); DEBUG(10,("errno is %d\n",errno)); DEBUG(10,("return code is %d\n",rc));