mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
8ff2fe33bd
This converts filename_convert_dirfsp to do symlink evaluation in user space. It uses openat_pathref_dirfsp_nosymlink() to open the dirpath and looks at the proper NT_STATUS_STOPPED_ON_SYMLINK response. Using this avoids filename_convert() and thus unix_convert() completely for the SMB2_CREATE case. The tests samba3.blackbox.smbclient_s3.NT1.plain.Recursive ls across MS-DFS links now correctly stop the symlink lookup recursion with NT_STATUS_OBJECT_PATH_NOT_FOUND. Previously we did not correcly pass up the ELOOP coming back from the stat-call. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Jul 25 12:56:08 UTC 2022 on sn-devel-184