mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: VFS: vfs_catia: Remove unlink_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
d4c4c688dd
commit
257137ee58
@ -676,37 +676,6 @@ static int catia_lstat(vfs_handle_struct *handle,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int catia_unlink(vfs_handle_struct *handle,
|
|
||||||
const struct smb_filename *smb_fname)
|
|
||||||
{
|
|
||||||
struct smb_filename *smb_fname_tmp = NULL;
|
|
||||||
char *name = NULL;
|
|
||||||
NTSTATUS status;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
status = catia_string_replace_allocate(handle->conn,
|
|
||||||
smb_fname->base_name,
|
|
||||||
&name, vfs_translate_to_unix);
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
|
||||||
errno = map_errno_from_nt_status(status);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Setup temporary smb_filename structs. */
|
|
||||||
smb_fname_tmp = cp_smb_filename(talloc_tos(), smb_fname);
|
|
||||||
if (smb_fname_tmp == NULL) {
|
|
||||||
errno = ENOMEM;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
smb_fname_tmp->base_name = name;
|
|
||||||
ret = SMB_VFS_NEXT_UNLINK(handle, smb_fname_tmp);
|
|
||||||
TALLOC_FREE(smb_fname_tmp);
|
|
||||||
TALLOC_FREE(name);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int catia_unlinkat(vfs_handle_struct *handle,
|
static int catia_unlinkat(vfs_handle_struct *handle,
|
||||||
struct files_struct *dirfsp,
|
struct files_struct *dirfsp,
|
||||||
const struct smb_filename *smb_fname,
|
const struct smb_filename *smb_fname,
|
||||||
@ -2492,7 +2461,6 @@ static struct vfs_fn_pointers vfs_catia_fns = {
|
|||||||
.stat_fn = catia_stat,
|
.stat_fn = catia_stat,
|
||||||
.fstat_fn = catia_fstat,
|
.fstat_fn = catia_fstat,
|
||||||
.lstat_fn = catia_lstat,
|
.lstat_fn = catia_lstat,
|
||||||
.unlink_fn = catia_unlink,
|
|
||||||
.unlinkat_fn = catia_unlinkat,
|
.unlinkat_fn = catia_unlinkat,
|
||||||
.chmod_fn = catia_chmod,
|
.chmod_fn = catia_chmod,
|
||||||
.fchmod_fn = catia_fchmod,
|
.fchmod_fn = catia_fchmod,
|
||||||
|
Loading…
Reference in New Issue
Block a user