diff options
author | Jeremy Allison <jra@samba.org> | 2013-12-03 10:21:16 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-12-09 21:02:21 +0100 |
commit | f98d10af2a05f0261611f4cabdfe274cd9fe91c0 (patch) | |
tree | ae4ac2857fc4067e95e4fd4e0f2c53edf3c4ca7a /source3 | |
parent | 874318a97868e08837a1febb1be8e8a167b5ae0f (diff) | |
download | samba-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')
-rw-r--r-- | source3/smbd/nttrans.c | 6 | ||||
-rw-r--r-- | source3/smbd/reply.c | 6 | ||||
-rw-r--r-- | source3/smbd/smb2_create.c | 3 |
3 files changed, 5 insertions, 10 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 1ed22427245..bca4cd8ab54 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -538,8 +538,7 @@ void reply_ntcreate_and_X(struct smb_request *req) conn, req->flags2 & FLAGS2_DFS_PATHNAMES, fname, - (create_disposition == FILE_CREATE) - ? UCF_PREP_CREATEFILE : 0, + UCF_PREP_CREATEFILE, NULL, &smb_fname); @@ -1067,8 +1066,7 @@ static void call_nt_transact_create(connection_struct *conn, conn, req->flags2 & FLAGS2_DFS_PATHNAMES, fname, - (create_disposition == FILE_CREATE) - ? UCF_PREP_CREATEFILE : 0, + UCF_PREP_CREATEFILE, NULL, &smb_fname); diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index aba1d1b64f3..72dadf6dbbf 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1917,8 +1917,7 @@ void reply_open(struct smb_request *req) conn, req->flags2 & FLAGS2_DFS_PATHNAMES, fname, - (create_disposition == FILE_CREATE) - ? UCF_PREP_CREATEFILE : 0, + UCF_PREP_CREATEFILE, NULL, &smb_fname); if (!NT_STATUS_IS_OK(status)) { @@ -2086,8 +2085,7 @@ void reply_open_and_X(struct smb_request *req) conn, req->flags2 & FLAGS2_DFS_PATHNAMES, fname, - (create_disposition == FILE_CREATE) - ? UCF_PREP_CREATEFILE : 0, + UCF_PREP_CREATEFILE, NULL, &smb_fname); if (!NT_STATUS_IS_OK(status)) { diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 74881c6d043..f2fec083353 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)) { |