]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_catia. Remove mkdir_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 6 Sep 2019 22:43:03 +0000 (15:43 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 11 Sep 2019 18:24:30 +0000 (18:24 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_catia.c

index 8801e0c83a2c9af897b36b784664fcfca317c7a0..46a4e1ed0bd748c30fe663dee895342528cca963 100644 (file)
@@ -854,41 +854,6 @@ static int catia_rmdir(vfs_handle_struct *handle,
        return ret;
 }
 
-static int catia_mkdir(vfs_handle_struct *handle,
-                      const struct smb_filename *smb_fname,
-                      mode_t mode)
-{
-       char *name = NULL;
-       NTSTATUS status;
-       int ret;
-       struct smb_filename *catia_smb_fname = NULL;
-
-       status = catia_string_replace_allocate(handle->conn,
-                               smb_fname->base_name,
-                               &name,
-                               vfs_translate_to_unix);
-       if (!NT_STATUS_IS_OK(status)) {
-               errno = map_errno_from_nt_status(status);
-               return -1;
-       }
-       catia_smb_fname = synthetic_smb_fname(talloc_tos(),
-                                       name,
-                                       NULL,
-                                       &smb_fname->st,
-                                       smb_fname->flags);
-       if (catia_smb_fname == NULL) {
-               TALLOC_FREE(name);
-               errno = ENOMEM;
-               return -1;
-       }
-
-       ret = SMB_VFS_NEXT_MKDIR(handle, catia_smb_fname, mode);
-       TALLOC_FREE(name);
-       TALLOC_FREE(catia_smb_fname);
-
-       return ret;
-}
-
 static int catia_mkdirat(vfs_handle_struct *handle,
                        struct files_struct *dirfsp,
                        const struct smb_filename *smb_fname,
@@ -2471,7 +2436,6 @@ static struct vfs_fn_pointers vfs_catia_fns = {
        .connect_fn = catia_connect,
 
        /* Directory operations */
-       .mkdir_fn = catia_mkdir,
        .mkdirat_fn = catia_mkdirat,
        .rmdir_fn = catia_rmdir,
        .opendir_fn = catia_opendir,