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