diff options
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r-- | source3/smbd/open.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index eb70344224..aafedf4ce4 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2955,7 +2955,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, int info = FILE_WAS_OPENED; files_struct *base_fsp = NULL; files_struct *fsp = NULL; - char *fname = NULL; NTSTATUS status; DEBUG(10,("create_file_unixpath: access_mask = 0x%x " @@ -2971,12 +2970,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, (unsigned int)oplock_request, ea_list, sd, smb_fname_str_dbg(smb_fname))); - status = get_full_smb_filename(talloc_tos(), smb_fname, - &fname); - if (!NT_STATUS_IS_OK(status)) { - goto fail; - } - if (create_options & FILE_OPEN_BY_FILE_ID) { status = NT_STATUS_NOT_SUPPORTED; goto fail; @@ -3244,8 +3237,8 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, } if ((ea_list != NULL) && - ((info == FILE_WAS_CREATED) || (info == FILE_WAS_OVERWRITTEN))) { - status = set_ea(conn, fsp, fname, ea_list); + ((info == FILE_WAS_CREATED) || (info == FILE_WAS_OVERWRITTEN))) { + status = set_ea(conn, fsp, smb_fname, ea_list); if (!NT_STATUS_IS_OK(status)) { goto fail; } |