summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-09 16:07:53 -0700
committerJeremy Allison <jra@samba.org>2019-08-16 19:52:36 +0000
commit055fda0830e2fe470ed23ccd963e29b4a8bb711b (patch)
treed43b66906888d25ef2c445847d88f62fdf6b9fc1
parentca4e66cbd3a04407353974a751f0c6de19bdc5a5 (diff)
downloadsamba-055fda0830e2fe470ed23ccd963e29b4a8bb711b.tar.gz
s3: VFS: vfs_netatalk. Remove rename_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--source3/modules/vfs_netatalk.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/source3/modules/vfs_netatalk.c b/source3/modules/vfs_netatalk.c
index 14ace3b67fd..658c95c175e 100644
--- a/source3/modules/vfs_netatalk.c
+++ b/source3/modules/vfs_netatalk.c
@@ -258,44 +258,6 @@ exit_rmdir:
/* File operations */
-static int atalk_rename(struct vfs_handle_struct *handle,
- const struct smb_filename *smb_fname_src,
- const struct smb_filename *smb_fname_dst)
-{
- int ret = 0;
- char *oldname = NULL;
- char *adbl_path = NULL;
- char *orig_path = NULL;
- SMB_STRUCT_STAT adbl_info;
- SMB_STRUCT_STAT orig_info;
- NTSTATUS status;
-
- ret = SMB_VFS_NEXT_RENAME(handle, smb_fname_src, smb_fname_dst);
-
- status = get_full_smb_filename(talloc_tos(), smb_fname_src, &oldname);
- if (!NT_STATUS_IS_OK(status)) {
- return ret;
- }
-
- if (atalk_build_paths(talloc_tos(), handle->conn->cwd_fsp->fsp_name->base_name, oldname,
- &adbl_path, &orig_path, &adbl_info,
- &orig_info) != 0)
- goto exit_rename;
-
- if (S_ISDIR(orig_info.st_ex_mode) || S_ISREG(orig_info.st_ex_mode)) {
- DEBUG(3, ("ATALK: %s has passed..\n", adbl_path));
- goto exit_rename;
- }
-
- atalk_unlink_file(adbl_path);
-
-exit_rename:
- TALLOC_FREE(oldname);
- TALLOC_FREE(adbl_path);
- TALLOC_FREE(orig_path);
- return ret;
-}
-
static int atalk_renameat(struct vfs_handle_struct *handle,
files_struct *srcfsp,
const struct smb_filename *smb_fname_src,
@@ -522,7 +484,6 @@ static struct vfs_fn_pointers vfs_netatalk_fns = {
.opendir_fn = atalk_opendir,
.fdopendir_fn = atalk_fdopendir,
.rmdir_fn = atalk_rmdir,
- .rename_fn = atalk_rename,
.renameat_fn = atalk_renameat,
.unlink_fn = atalk_unlink,
.chmod_fn = atalk_chmod,