smbd: Simplify open_stream_pathref_fsp()
authorVolker Lendecke <vl@samba.org>
Tue, 14 Jun 2022 15:17:54 +0000 (17:17 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Jul 2022 12:04:33 +0000 (12:04 +0000)
commitf292b1ae0025af6d7432116aee3decb16a1699cf
treed2f76dd79165ed9be3799610bc5c2fece2a74c47
parent348f19d35b3c12ee67cc262614d41a2f165e1f7d
smbd: Simplify open_stream_pathref_fsp()

The main point of this function was to avoid fd_openat() and thus the
expensive non_widelink_open(). Now that fd_openat() has the direct
SMB_VFS_OPENAT() fast-path for streams, we can avoid duplicating the
logic in open_stream_pathref_fsp() again.

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