mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +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
|
* Actually do the open - if O_TRUNC is needed handle it
|
||||||
* below under the share mode lock.
|
* below under the share mode lock.
|
||||||
*/
|
*/
|
||||||
status = reopen_from_fsp(fsp->conn->cwd_fsp,
|
status = reopen_from_fsp(dirfsp,
|
||||||
fsp->fsp_name,
|
smb_fname_atname,
|
||||||
fsp,
|
fsp,
|
||||||
local_flags & ~O_TRUNC,
|
local_flags & ~O_TRUNC,
|
||||||
unx_mode,
|
unx_mode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user