[Pkg-samba-maint] [samba] 111/135: smbd: Always use UCF_PREP_CREATEFILE for filename_convert calls to resolve a path for open.
Ivo De Decker
ivodd at moszumanska.debian.org
Sat Jan 11 21:30:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
ivodd pushed a commit to branch master
in repository samba.
commit aa79211e1947801ba1ae24062784807d5d419a4d
Author: Jeremy Allison <jra at samba.org>
Date: Tue Dec 3 10:21:16 2013 -0800
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 at samba.org>
Reviewed-by: Volker Lendecke <vl at samba.org>
Autobuild-User(master): Jeremy Allison <jra at samba.org>
Autobuild-Date(master): Mon Dec 9 21:02:21 CET 2013 on sn-devel-104
(cherry picked from commit f98d10af2a05f0261611f4cabdfe274cd9fe91c0)
---
source3/smbd/nttrans.c | 6 ++----
source3/smbd/reply.c | 6 ++----
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 ba842ad..5a0ac39 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -539,8 +539,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);
@@ -1077,8 +1076,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 b471a06..6b926fb 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1918,8 +1918,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)) {
@@ -2096,8 +2095,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 357d25e..8430bd2 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -846,8 +846,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)) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git
More information about the Pkg-samba-maint
mailing list