s3: smbd: Fix the SMB2 server to pass SMB2-PATH-SLASH.
authorJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 19:37:15 +0000 (12:37 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 2 Oct 2019 09:31:40 +0000 (09:31 +0000)
commit398cb8a56d83a7978836ee0b65b4747d190ab630
tree77ecf43046a51f53bd31808676347c920915d080
parent5642f288c895467e32a39430af709cc48198e7c1
s3: smbd: Fix the SMB2 server to pass SMB2-PATH-SLASH.

[MS-FSA] 2.1.5.1 Server Requests an Open of a File

Windows pathname specific processing.

Always disallow trailing /, and also \\ on FILE_NON_DIRECTORY_FILE.

We need to check this before the generic pathname parser
as the generic pathname parser removes any trailing '/' and '\\'.

Currently this is SMB2 only, but we could also add this
check to the SMB1 NTCreateX calls if ultimately neded.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Oct  2 09:31:40 UTC 2019 on sn-devel-184
selftest/knownfail
source3/smbd/smb2_create.c