vfs_aixacl2: handle pathref fsps in aixjfs2_sys_acl_set_fd()
authorRalph Boehme <slow@samba.org>
Mon, 14 Dec 2020 09:07:04 +0000 (10:07 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 17 Dec 2020 18:56:28 +0000 (18:56 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_aixacl2.c

index dd9de98c957e882171b9a32b047ecd85d1f31ef1..92759a73bcd4ef8675b6fbc55e91eb6c24e39cd3 100644 (file)
@@ -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 */