summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-08 10:47:11 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-08 10:48:39 +0200
commit02c5f22ec876d6b243f77227a0f1328482eb9f07 (patch)
treef91ebb95d3692c12f591eeb918967d01be039834 /source3/smbd
parent9aa1d259070e93b3890933c932cbf6a2c84bc6fa (diff)
downloadsamba-02c5f22ec876d6b243f77227a0f1328482eb9f07.tar.gz
samba-02c5f22ec876d6b243f77227a0f1328482eb9f07.tar.bz2
samba-02c5f22ec876d6b243f77227a0f1328482eb9f07.zip
s3:smbd: convert '\\' into '/' in SMB2 Create
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_create.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index e185434d31..1517ab8b35 100644
--- 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,