s3: smbd: In filename_convert_dirfsp_nosymlink(), cope with an MS-DFS link as the...
commitd80bedc3c418b6839b1bde78ba8d3db06611be2a
authorJeremy Allison <jra@samba.org>
Mon, 8 Aug 2022 20:18:56 +0000 (8 13:18 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 12 Aug 2022 18:19:31 +0000 (12 18:19 +0000)
tree833d729582aa048699b05dd3c3082cc6622c7980
parent07ef9e3029b8cca1b92d900d6ed684ca0ac6afe4
s3: smbd: In filename_convert_dirfsp_nosymlink(), cope with an MS-DFS link as the terminal component.

If the terminal component was an MSDFS link, openat_pathref_fsp_case_insensitive() will
return NT_STATUS_OBJECT_NAME_NOT_FOUND with a VALID_STAT of a symlink.

If this is the case, check if we actually found a terminal MS-DFS link
at the end of the pathname and return NT_STATUS_PATH_NOT_COVERED.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15144

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c