mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:smbd: convert '\\' into '/' in SMB2 Create
metze
This commit is contained in:
parent
9aa1d25907
commit
02c5f22ec8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user