From f4c2f867f035fcbe3d547d5635d058b0aec7636a Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 14 Dec 2020 10:04:15 +0100 Subject: [PATCH] vfs_aixacl: handle pathref fsps in aixacl_sys_acl_set_fd() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_aixacl.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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)); -- 2.11.4.GIT