smbd: use fd_openat()
authorRalph Boehme <slow@samba.org>
Fri, 8 May 2020 14:32:56 +0000 (16:32 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 21 May 2020 20:38:35 +0000 (20:38 +0000)
commit75d6943ed880019cca1192d4d4d62d5f27b97d2d
tree6cf205f8fd160d27ee0abc559d640b2d8c5688bc
parenteaf1c6a338a6253068fc3e671605f18c71565dbb
smbd: use fd_openat()

This leaves basically two callers of fd_open():

* open_internal_dirfsp_at()
* smbd_smb2_query_directory_send()

Those will be the only codepaths that use full paths relative to the share root
and so require and use the symlink race protection provided by
non_widelink_open().

Of course, until we actuall start passing real dirfsps to fd_openat(),
fd_openat() internally calls fd_open().

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/durable.c
source3/smbd/open.c