From 44f9adc155fc59836580e1d9bc4820d547082fbd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Oct 2019 14:01:55 -0700 Subject: s3: VFS: vfs_unityed_media: Remove rmdir_fn. No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_unityed_media.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c index 7ea02d41c89..48ff7e0d5d0 100644 --- a/source3/modules/vfs_unityed_media.c +++ b/source3/modules/vfs_unityed_media.c @@ -822,34 +822,6 @@ err: return status; } -static int um_rmdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int status; - const char *path = smb_fname->base_name; - struct smb_filename *client_fname = NULL; - - DEBUG(10, ("Entering with path '%s'\n", path)); - - if (!is_in_media_files(path)) { - return SMB_VFS_NEXT_RMDIR(handle, smb_fname); - } - - status = alloc_get_client_smb_fname(handle, - talloc_tos(), - smb_fname, - &client_fname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_RMDIR(handle, client_fname); -err: - TALLOC_FREE(client_fname); - DEBUG(10, ("Leaving with path '%s'\n", path)); - return status; -} - static int um_closedir(vfs_handle_struct *handle, DIR *dirp) { @@ -1932,7 +1904,6 @@ static struct vfs_fn_pointers vfs_um_fns = { .telldir_fn = um_telldir, .rewind_dir_fn = um_rewinddir, .mkdirat_fn = um_mkdirat, - .rmdir_fn = um_rmdir, .closedir_fn = um_closedir, /* File operations */ -- cgit v1.2.1