summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-06-25 14:16:46 -0700
committerTim Prouty <tprouty@samba.org>2009-06-25 18:25:47 -0700
commit358ccc3282681b3df0ba76fecc114ad4376c8ff1 (patch)
tree106d8e8d501d42c0bdd67719288c95518dcb2939 /source3/smbd/open.c
parent9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008 (diff)
downloadsamba-358ccc3282681b3df0ba76fecc114ad4376c8ff1.tar.gz
samba-358ccc3282681b3df0ba76fecc114ad4376c8ff1.tar.bz2
samba-358ccc3282681b3df0ba76fecc114ad4376c8ff1.zip
s3: Change set_ea() and its callers to use smb_filename
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c11
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;
}