s3: VFS: catia. Remove catia_get_nt_acl_at().
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 19:45:43 +0000 (12:45 -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_catia.c

index e146b8070241dd9dc2c254787509737fab6c8c2c..f54c5757a6877fe36bdf3bb84fd44a2f35043042 100644 (file)
@@ -1008,49 +1008,6 @@ catia_fstreaminfo(struct vfs_handle_struct *handle,
        return NT_STATUS_OK;
 }
 
-static NTSTATUS catia_get_nt_acl_at(struct vfs_handle_struct *handle,
-                                   struct files_struct *dirfsp,
-                                   const struct smb_filename *smb_fname,
-                                   uint32_t security_info,
-                                   TALLOC_CTX *mem_ctx,
-                                   struct security_descriptor **ppdesc)
-{
-       char *mapped_name = NULL;
-       const char *path = smb_fname->base_name;
-       struct smb_filename *mapped_smb_fname = NULL;
-       NTSTATUS status;
-
-       SMB_ASSERT(dirfsp == handle->conn->cwd_fsp);
-
-       status = catia_string_replace_allocate(handle->conn,
-                               path, &mapped_name, vfs_translate_to_unix);
-       if (!NT_STATUS_IS_OK(status)) {
-               errno = map_errno_from_nt_status(status);
-               return status;
-       }
-       mapped_smb_fname = synthetic_smb_fname(talloc_tos(),
-                                       mapped_name,
-                                       NULL,
-                                       &smb_fname->st,
-                                       smb_fname->twrp,
-                                       smb_fname->flags);
-       if (mapped_smb_fname == NULL) {
-               TALLOC_FREE(mapped_name);
-               return NT_STATUS_NO_MEMORY;
-       }
-
-       status = SMB_VFS_NEXT_GET_NT_ACL_AT(handle,
-                                       dirfsp,
-                                       mapped_smb_fname,
-                                       security_info,
-                                       mem_ctx,
-                                       ppdesc);
-       TALLOC_FREE(mapped_name);
-       TALLOC_FREE(mapped_smb_fname);
-
-       return status;
-}
-
 static SMB_ACL_T
 catia_sys_acl_get_file(vfs_handle_struct *handle,
                        const struct smb_filename *smb_fname,
@@ -2095,7 +2052,6 @@ static struct vfs_fn_pointers vfs_catia_fns = {
        .read_dfs_pathat_fn = catia_read_dfs_pathat,
 
        /* NT ACL operations. */
-       .get_nt_acl_at_fn = catia_get_nt_acl_at,
        .fget_nt_acl_fn = catia_fget_nt_acl,
        .fset_nt_acl_fn = catia_fset_nt_acl,