mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: VFS: catia. Remove get_nt_acl_fn().
No longer used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
6a2aa09b85
commit
c68f457e81
@ -1018,43 +1018,6 @@ catia_streaminfo(struct vfs_handle_struct *handle,
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
static NTSTATUS
|
||||
catia_get_nt_acl(struct vfs_handle_struct *handle,
|
||||
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;
|
||||
|
||||
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(handle, mapped_smb_fname,
|
||||
security_info, mem_ctx, ppdesc);
|
||||
TALLOC_FREE(mapped_name);
|
||||
TALLOC_FREE(mapped_smb_fname);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
static NTSTATUS catia_get_nt_acl_at(struct vfs_handle_struct *handle,
|
||||
struct files_struct *dirfsp,
|
||||
const struct smb_filename *smb_fname,
|
||||
@ -2527,7 +2490,6 @@ static struct vfs_fn_pointers vfs_catia_fns = {
|
||||
.read_dfs_pathat_fn = catia_read_dfs_pathat,
|
||||
|
||||
/* NT ACL operations. */
|
||||
.get_nt_acl_fn = catia_get_nt_acl,
|
||||
.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,
|
||||
|
Loading…
Reference in New Issue
Block a user