s3: smbd: Remove all DFS path prefixes before passing to check_path_syntax_smb2().
commit2c40e28908e9fab8dce7e50d3357b513d9af78c4
authorJeremy Allison <jra@samba.org>
Mon, 27 Mar 2023 19:01:56 +0000 (27 12:01 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 31 Mar 2023 05:12:32 +0000 (31 05:12 +0000)
treeab57bb39df67bde6be4f94574ec94d84eeb9cfce
parent39ad689eeacd6a3dcaf24a9bd64d59295f00ddba
s3: smbd: Remove all DFS path prefixes before passing to check_path_syntax_smb2().

In smb2, smb1req->flags2 now never uses FLAGS2_DFS_PATHNAMES,
ucf_flags never has UCF_DFS_PATHNAME, and all calls to check_path_syntax_smb2()
pass "false" in this is_dfs parameter.

Remove all knownfails for smb2.SMB2-DFS* tests.

Now I can clean up check_path_syntax_smb2() and add
an assertion into filename_convert_dirfsp_nosymlink() that
UCF_DFS_PATHNAME is *NEVER* set in the ucf_flags for an
SMB2 connection.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/knownfail.d/dfs_paths
source3/smbd/smb2_create.c
source3/smbd/smb2_trans2.c