diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 14:42:26 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:40 +0000 |
commit | b222c486b36e4cff7d827aedb90f5bfa5c3a9fd3 (patch) | |
tree | 2881a9f8d2c0f555a51c5e0bb3f4ff9ff8d1d430 /source3 | |
parent | 8a18518edead4c828a62615365c99624e4315e69 (diff) | |
download | samba-b222c486b36e4cff7d827aedb90f5bfa5c3a9fd3.tar.gz |
s3: VFS: vfs_cap: 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')
-rw-r--r-- | source3/modules/vfs_cap.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index 9b7a855bab3..21465c4f91d 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -169,31 +169,6 @@ static int cap_mkdirat(vfs_handle_struct *handle, mode); } -static int cap_rmdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - char *cappath = capencode(talloc_tos(), smb_fname->base_name); - struct smb_filename *cap_smb_fname = NULL; - - if (!cappath) { - errno = ENOMEM; - return -1; - } - - cap_smb_fname = synthetic_smb_fname(talloc_tos(), - cappath, - NULL, - NULL, - smb_fname->flags); - if (cap_smb_fname == NULL) { - TALLOC_FREE(cappath); - errno = ENOMEM; - return -1; - } - - return SMB_VFS_NEXT_RMDIR(handle, cap_smb_fname); -} - static int cap_open(vfs_handle_struct *handle, struct smb_filename *smb_fname, files_struct *fsp, int flags, mode_t mode) { @@ -1041,7 +1016,6 @@ static struct vfs_fn_pointers vfs_cap_fns = { .opendir_fn = cap_opendir, .readdir_fn = cap_readdir, .mkdirat_fn = cap_mkdirat, - .rmdir_fn = cap_rmdir, .open_fn = cap_open, .renameat_fn = cap_renameat, .stat_fn = cap_stat, |