]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: Add openat_internal_dir_from_pathref()
authorVolker Lendecke <vl@samba.org>
Sun, 13 Mar 2022 09:48:12 +0000 (10:48 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 28 Apr 2022 13:12:33 +0000 (13:12 +0000)
commitdf29512b72f652728afd6ce161e4eec50c2400a8
tree8e3ab0d60642d693766db06cb8272a5653cb7a59
parent02f6130c907e7e3aef89a9b84c72f1deb649e5ff
smbd: Add openat_internal_dir_from_pathref()

If we have a directory pathref fsp, do an openat(dirfd, ".", O_RDONLY)
to cheaply get a real directory handle.

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