vfs_aixacl2: use ACL type in aixjfs2_sys_acl_set_fd()
authorRalph Boehme <slow@samba.org>
Sun, 13 Dec 2020 08:07:51 +0000 (09: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 d06f7c882f5137dbdd39f3bcd80fa764a225b6ec..dd9de98c957e882171b9a32b047ecd85d1f31ef1 100644 (file)
@@ -529,7 +529,7 @@ int aixjfs2_sys_acl_set_fd(vfs_handle_struct *handle,
                return -1;
        }
 
-       acl_aixc = aixacl_smb_to_aixacl(SMB_ACL_TYPE_ACCESS, theacl);
+       acl_aixc = aixacl_smb_to_aixacl(type, theacl);
        if (!acl_aixc)
                return -1;