summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_create.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-12-03 10:21:16 -0800
committerJeremy Allison <jra@samba.org>2013-12-09 21:02:21 +0100
commitf98d10af2a05f0261611f4cabdfe274cd9fe91c0 (patch)
treeae4ac2857fc4067e95e4fd4e0f2c53edf3c4ca7a /source3/smbd/smb2_create.c
parent874318a97868e08837a1febb1be8e8a167b5ae0f (diff)
downloadsamba-f98d10af2a05f0261611f4cabdfe274cd9fe91c0.tar.gz
samba-f98d10af2a05f0261611f4cabdfe274cd9fe91c0.tar.xz
samba-f98d10af2a05f0261611f4cabdfe274cd9fe91c0.zip
smbd: Always use UCF_PREP_CREATEFILE for filename_convert calls to resolve a path for open.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10297 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Dec 9 21:02:21 CET 2013 on sn-devel-104
Diffstat (limited to 'source3/smbd/smb2_create.c')
-rw-r--r--source3/smbd/smb2_create.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index 74881c6d04..f2fec08335 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -891,8 +891,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
smb1req->conn,
smb1req->flags2 & FLAGS2_DFS_PATHNAMES,
fname,
- (in_create_disposition == FILE_CREATE) ?
- UCF_PREP_CREATEFILE : 0,
+ UCF_PREP_CREATEFILE,
NULL, /* ppath_contains_wcards */
&smb_fname);
if (!NT_STATUS_IS_OK(status)) {