diff options
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_default.c | 25 | ||||
-rw-r--r-- | source3/modules/vfs_not_implemented.c | 9 |
2 files changed, 0 insertions, 34 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 2e353e5da75..4cca80ea397 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -493,30 +493,6 @@ static void vfswrap_rewinddir(vfs_handle_struct *handle, DIR *dirp) END_PROFILE(syscall_rewinddir); } -static int vfswrap_mkdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode) -{ - int result; - const char *path = smb_fname->base_name; - char *parent = NULL; - - START_PROFILE(syscall_mkdir); - - if (lp_inherit_acls(SNUM(handle->conn)) - && parent_dirname(talloc_tos(), path, &parent, NULL) - && directory_has_default_acl(handle->conn, parent)) { - mode = (0777 & lp_directory_mask(SNUM(handle->conn))); - } - - TALLOC_FREE(parent); - - result = mkdir(path, mode); - - END_PROFILE(syscall_mkdir); - return result; -} - static int vfswrap_mkdirat(vfs_handle_struct *handle, struct files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -3486,7 +3462,6 @@ static struct vfs_fn_pointers vfs_default_fns = { .seekdir_fn = vfswrap_seekdir, .telldir_fn = vfswrap_telldir, .rewind_dir_fn = vfswrap_rewinddir, - .mkdir_fn = vfswrap_mkdir, .mkdirat_fn = vfswrap_mkdirat, .rmdir_fn = vfswrap_rmdir, .closedir_fn = vfswrap_closedir, diff --git a/source3/modules/vfs_not_implemented.c b/source3/modules/vfs_not_implemented.c index 9fa143a6729..e0f36b9a632 100644 --- a/source3/modules/vfs_not_implemented.c +++ b/source3/modules/vfs_not_implemented.c @@ -162,14 +162,6 @@ void vfs_not_implemented_rewind_dir(vfs_handle_struct *handle, DIR *dirp) ; } -int vfs_not_implemented_mkdir(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode) -{ - errno = ENOSYS; - return -1; -} - int vfs_not_implemented_mkdirat(vfs_handle_struct *handle, struct files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -1063,7 +1055,6 @@ static struct vfs_fn_pointers vfs_not_implemented_fns = { .seekdir_fn = vfs_not_implemented_seekdir, .telldir_fn = vfs_not_implemented_telldir, .rewind_dir_fn = vfs_not_implemented_rewind_dir, - .mkdir_fn = vfs_not_implemented_mkdir, .mkdirat_fn = vfs_not_implemented_mkdirat, .rmdir_fn = vfs_not_implemented_rmdir, .closedir_fn = vfs_not_implemented_closedir, |