mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
smbd: Use dirfsp and atname passed to open_file()
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
This commit is contained in:
parent
0d05bc2e42
commit
6e6ced4b8c
@ -1479,8 +1479,8 @@ static NTSTATUS open_file(struct smb_request *req,
|
||||
* 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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user