smbd: Use OpenDir_from_pathref() in can_delete_directory_fsp()
commit10512eebec60346c302b86eb77231372b8ad617a
authorVolker Lendecke <vl@samba.org>
Wed, 9 Oct 2024 11:36:00 +0000 (9 13:36 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 18:07:33 +0000 (12 18:07 +0000)
tree3ab5a5b4df7c00ba5d5e5cc48f2e608f67a8495a
parentc0bbeded932f00b0cdc3954d549d6566c85fdc0b
smbd: Use OpenDir_from_pathref() in can_delete_directory_fsp()

This avoids a full path traversal if /proc/self/fd is available.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c