smbd: use dirfsp and atname in open_directory()
authorRalph Boehme <slow@samba.org>
Mon, 18 Dec 2023 11:35:58 +0000 (12:35 +0100)
committerJule Anger <janger@samba.org>
Mon, 29 Jan 2024 11:53:56 +0000 (11:53 +0000)
commit974a890822384314178281875c8afbd9959e2db1
tree2b45af8181231317ba66c31810845611e40c41a1
parentab7d69665d0d9bffd5ba06efa4bf28e09c041b7b
smbd: use dirfsp and atname in open_directory()

On systems without /proc/fd support this avoid the expensive chdir()
logic in non_widelink_open(). open_file_ntcreate() already passes
dirfsp and atname to reopen_from_fsp(), it was just missed in the
conversion.

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

Reviewed-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Jan 22 12:00:56 UTC 2024 on atb-devel-224

(cherry picked from commit 2713023250f15cf9971d88620cab9dd4afd0dc73)

Autobuild-User(v4-18-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-18-test): Mon Jan 29 11:53:56 UTC 2024 on atb-devel-224
source3/smbd/open.c