vfs_aixacl: use passed in ACL type in aixacl_sys_acl_set_fd()
authorRalph Boehme <slow@samba.org>
Sun, 13 Dec 2020 08:06:24 +0000 (09:06 +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_aixacl.c

index e9cc667faf90c8fb4019eb7a04cb17ea32d1db7f..149c2f86d156a0f6589deff1cad9878dd0c2e64c 100644 (file)
@@ -162,7 +162,7 @@ int aixacl_sys_acl_set_fd(vfs_handle_struct *handle,
        struct acl *file_acl = NULL;
        unsigned int rc;
 
-       file_acl = aixacl_smb_to_aixacl(SMB_ACL_TYPE_ACCESS, theacl);
+       file_acl = aixacl_smb_to_aixacl(type, theacl);
        if (!file_acl)
                return -1;