From 3fe7dfd1d90374a2e06e1683b8f2c702c471c833 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 3 Dec 2009 16:45:35 -0800 Subject: Remove smb_fname duplicates that just keep the same information as in fsp->fsp_name. Moving towards making VFS_OPEN/VFS_MKDIR/VFS_RMDIR handle based... Jeremy. --- source3/modules/onefs_open.c | 7 ------- source3/modules/vfs_acl_common.c | 4 ---- 2 files changed, 11 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/onefs_open.c b/source3/modules/onefs_open.c index b96c4b6afb..2b4e106f91 100644 --- a/source3/modules/onefs_open.c +++ b/source3/modules/onefs_open.c @@ -322,13 +322,6 @@ static NTSTATUS onefs_open_file(files_struct *fsp, fsp->aio_write_behind = True; } - status = fsp_set_smb_fname(fsp, smb_fname); - if (!NT_STATUS_IS_OK(status)) { - fd_close(fsp); - errno = map_errno_from_nt_status(status); - return status; - } - fsp->wcp = NULL; /* Write cache pointer. */ DEBUG(2,("%s opened file %s read=%s write=%s (numopen=%d)\n", diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index 570d14b4b2..3334102104 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -587,10 +587,6 @@ static int open_acl_common(vfs_handle_struct *handle, if (!file_existed && fsp->fh->fd != -1) { /* File was created. Inherit from parent directory. */ - status = fsp_set_smb_fname(fsp, smb_fname); - if (!NT_STATUS_IS_OK(status)) { - goto err; - } inherit_new_acl(handle, smb_fname, fsp, parent_desc, false); } -- cgit