From: Jeremy Allison Date: Fri, 6 Sep 2019 22:42:10 +0000 (-0700) Subject: s3: VFS: vfs_cap. Remove mkdir_fn(). No longer used. X-Git-Tag: talloc-2.3.1~883 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=450d392551753b7a2d4b0972adea2388f60aa89a;p=thirdparty%2Fsamba.git s3: VFS: vfs_cap. Remove mkdir_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index 3f75ba1c2e7..683e4fbc6d4 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -139,32 +139,6 @@ static struct dirent *cap_readdir(vfs_handle_struct *handle, return newdirent; } -static int cap_mkdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode) -{ - 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_MKDIR(handle, cap_smb_fname, mode); -} - static int cap_mkdirat(vfs_handle_struct *handle, struct files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -1061,7 +1035,6 @@ static struct vfs_fn_pointers vfs_cap_fns = { .get_quota_fn = cap_get_quota, .opendir_fn = cap_opendir, .readdir_fn = cap_readdir, - .mkdir_fn = cap_mkdir, .mkdirat_fn = cap_mkdirat, .rmdir_fn = cap_rmdir, .open_fn = cap_open,