summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-04 14:43:11 -0700
committerRalph Boehme <slow@samba.org>2019-10-10 06:09:40 +0000
commitb79c7d28738e5e9a33d5f7db9db61116295ac5d5 (patch)
tree67c5877c803704cb3880154d1086357b6936507b /source3/modules
parentb222c486b36e4cff7d827aedb90f5bfa5c3a9fd3 (diff)
downloadsamba-b79c7d28738e5e9a33d5f7db9db61116295ac5d5.tar.gz
s3: VFS: vfs_catia: Remove rmdir_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_catia.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c
index ed79edc23a7..db70060ee2b 100644
--- a/source3/modules/vfs_catia.c
+++ b/source3/modules/vfs_catia.c
@@ -825,40 +825,6 @@ static int catia_chmod(vfs_handle_struct *handle,
return ret;
}
-static int catia_rmdir(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname)
-{
- char *name = NULL;
- NTSTATUS status;
- int ret;
- struct smb_filename *catia_smb_fname = NULL;
-
- 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;
- }
- catia_smb_fname = synthetic_smb_fname(talloc_tos(),
- name,
- NULL,
- &smb_fname->st,
- smb_fname->flags);
- if (catia_smb_fname == NULL) {
- TALLOC_FREE(name);
- errno = ENOMEM;
- return -1;
- }
-
- ret = SMB_VFS_NEXT_RMDIR(handle, catia_smb_fname);
- TALLOC_FREE(name);
- TALLOC_FREE(catia_smb_fname);
-
- return ret;
-}
-
static int catia_mkdirat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
@@ -2442,7 +2408,6 @@ static struct vfs_fn_pointers vfs_catia_fns = {
/* Directory operations */
.mkdirat_fn = catia_mkdirat,
- .rmdir_fn = catia_rmdir,
.opendir_fn = catia_opendir,
.readdir_attr_fn = catia_readdir_attr,