]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:smbd: let open_directory() also use fd_open_atomic() as reopen_from_procfd() fallback
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Dec 2020 14:38:03 +0000 (15:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jan 2021 11:30:38 +0000 (11:30 +0000)
commitd6949f0f93ff0a1f6292395fbbd9c07b12fe9336
tree1b99e340cc7c8d3eaf1e4c168d978d1d862a8ec4
parent30134630988ca76545a8aee8516d44a0dc64bc8d
s3:smbd: let open_directory() also use fd_open_atomic() as reopen_from_procfd() fallback

Calling fd_open_atomic() without O_CREAT is the same as calling
fd_openat() directly, so we can also use it to open an existing
directory.

In the next step we'll move the reopen_from_procfd() fallback logic to
a single helper function.

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