]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: aixacl: Remove aixacl_sys_acl_set_file().
authorJeremy Allison <jra@samba.org>
Wed, 9 Jun 2021 00:08:42 +0000 (17:08 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:31 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_aixacl.c

index b9d08b72a7279430803e77e5bf381f0785c241b2..0628fae761b4c7b6b7c50ad41212e5f96edc939a 100644 (file)
@@ -80,27 +80,6 @@ SMB_ACL_T aixacl_sys_acl_get_fd(vfs_handle_struct *handle,
        return NULL;*/
 }
 
-int aixacl_sys_acl_set_file(vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname,
-                       SMB_ACL_TYPE_T type,
-                       SMB_ACL_T theacl)
-{
-       struct acl *file_acl = NULL;
-       unsigned int rc;
-
-       file_acl = aixacl_smb_to_aixacl(type, theacl);
-       if (!file_acl)
-               return -1;
-
-       rc = chacl((char *)smb_fname->base_name,file_acl,file_acl->acl_len);
-       DEBUG(10,("errno is %d\n",errno));
-       DEBUG(10,("return code is %d\n",rc));
-       SAFE_FREE(file_acl);
-       DEBUG(10,("Exiting the aixacl_sys_acl_set_file\n"));
-
-       return rc;
-}
-
 int aixacl_sys_acl_set_fd(vfs_handle_struct *handle,
                            files_struct *fsp,
                            SMB_ACL_TYPE_T type,