Give non_widelink_open() to use the cheaper path without the full
chdir() logic when called via open_file_ntcreate()/open_file().
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Apr 7 17:30:29 UTC 2022 on sn-devel-184
* Actually do the open - if O_TRUNC is needed handle it
* below under the share mode lock.
*/
- status = reopen_from_fsp(fsp->conn->cwd_fsp,
- fsp->fsp_name,
+ status = reopen_from_fsp(dirfsp,
+ smb_fname_atname,
fsp,
local_flags & ~O_TRUNC,
unx_mode,