summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-07-10 15:43:21 -0700
committerTim Prouty <tprouty@samba.org>2009-07-20 17:26:57 -0700
commitf4530f6d2a0688e350c3c7be23f256ebceffa636 (patch)
tree785069a2aa45cf71426dfbd2ef4e2d652a8be02c /source3/smbd/open.c
parent841efce8b5e931a7ec910afb7d0d8b6a123c6900 (diff)
downloadsamba-f4530f6d2a0688e350c3c7be23f256ebceffa636.tar.gz
samba-f4530f6d2a0688e350c3c7be23f256ebceffa636.tar.bz2
samba-f4530f6d2a0688e350c3c7be23f256ebceffa636.zip
s3: Plumb smb_filename through open_fake_file
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 33763d202d..7692c7c847 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3462,16 +3462,9 @@ NTSTATUS create_file_default(connection_struct *conn,
*/
if (is_ntfs_stream_smb_fname(smb_fname)) {
- char *fname = NULL;
enum FAKE_FILE_TYPE fake_file_type;
- status = get_full_smb_filename(talloc_tos(), smb_fname,
- &fname);
- if (!NT_STATUS_IS_OK(status)) {
- goto fail;
- }
-
- fake_file_type = is_fake_file(fname);
+ fake_file_type = is_fake_file(smb_fname);
if (fake_file_type != FAKE_FILE_TYPE_NONE) {
@@ -3487,9 +3480,8 @@ NTSTATUS create_file_default(connection_struct *conn,
* close it
*/
status = open_fake_file(req, conn, req->vuid,
- fake_file_type, fname,
+ fake_file_type, smb_fname,
access_mask, &fsp);
- TALLOC_FREE(fname);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
@@ -3497,7 +3489,6 @@ NTSTATUS create_file_default(connection_struct *conn,
ZERO_STRUCT(smb_fname->st);
goto done;
}
- TALLOC_FREE(fname);
if (!(conn->fs_capabilities & FILE_NAMED_STREAMS)) {
status = NT_STATUS_OBJECT_NAME_NOT_FOUND;