diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 14:52:18 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:41 +0000 |
commit | ae28488fb0447d1e3135d5f9569a633fe75c4661 (patch) | |
tree | d56be400a1b6e434b3b3924258ebfcff67dbf439 /source3/modules/vfs_media_harmony.c | |
parent | 5e1e58a1e7734f0b607c24b4f71a6f6224994bab (diff) | |
download | samba-ae28488fb0447d1e3135d5f9569a633fe75c4661.tar.gz |
s3: VFS: vfs_media_harmony: 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/vfs_media_harmony.c')
-rw-r--r-- | source3/modules/vfs_media_harmony.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index c64b4cdf557..4541d8157bc 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1086,41 +1086,6 @@ out: * Success: return 0 * Failure: set errno, return -1 */ -static int mh_rmdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - int status; - struct smb_filename *clientFname = NULL; - const char *path = smb_fname->base_name; - - DEBUG(MH_INFO_DEBUG, ("Entering with path '%s'\n", path)); - - if (!is_in_media_files(path)) - { - status = SMB_VFS_NEXT_RMDIR(handle, smb_fname); - goto out; - } - - status = alloc_get_client_smb_fname(handle, - talloc_tos(), - smb_fname, - &clientFname); - if (status != 0) { - goto err; - } - - status = SMB_VFS_NEXT_RMDIR(handle, clientFname); -err: - TALLOC_FREE(clientFname); -out: - DEBUG(MH_INFO_DEBUG, ("Leaving with path '%s'\n", path)); - return status; -} - -/* - * Success: return 0 - * Failure: set errno, return -1 - */ static int mh_closedir(vfs_handle_struct *handle, DIR *dirp) { @@ -2329,7 +2294,6 @@ static struct vfs_fn_pointers vfs_mh_fns = { .telldir_fn = mh_telldir, .rewind_dir_fn = mh_rewinddir, .mkdirat_fn = mh_mkdirat, - .rmdir_fn = mh_rmdir, .closedir_fn = mh_closedir, /* File operations */ |