git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa1d25
)
s3:smbd: convert '\\' into '/' in SMB2 Create
author
Stefan Metzmacher
<metze@samba.org>
Sat, 8 Aug 2009 08:47:11 +0000
(10:47 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sat, 8 Aug 2009 08:48:39 +0000
(10:48 +0200)
metze
source3/smbd/smb2_create.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_create.c
b/source3/smbd/smb2_create.c
index e185434d31fbfec8803e8926cbce7439770e2c20..1517ab8b3515290ed5b3b17d5ed726f35da37ae3 100644
(file)
--- a/
source3/smbd/smb2_create.c
+++ b/
source3/smbd/smb2_create.c
@@
-321,6
+321,14
@@
static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
in_create_options &= ~(0x10);/* NTCREATEX_OPTIONS_SYNC_ALERT */
in_create_options &= ~(0x20);/* NTCREATEX_OPTIONS_ASYNC_ALERT */
+ /* convert '\\' into '/' */
+ status = check_path_syntax(in_name);
+ if (!NT_STATUS_IS_OK(status)) {
+ tevent_req_nterror(req, status);
+ TALLOC_FREE(smb_fname);
+ goto out;
+ }
+
status = filename_convert(talloc_tos(),
smbreq->conn,
smbreq->flags2 & FLAGS2_DFS_PATHNAMES,