smbd: Introduce fsp_is_alternate_stream()
commit0acf72bf2f35e9f06ba36a565e49820a316fdf11
authorVolker Lendecke <vl@samba.org>
Fri, 11 Feb 2022 08:37:35 +0000 (11 09:37 +0100)
committerJule Anger <janger@samba.org>
Tue, 6 Sep 2022 06:32:13 +0000 (6 06:32 +0000)
treeffdaaf763762214292f48115c862afdf36123012
parentf6bb11dbaacaa03ca1991e7b1aa11b6699c15b84
smbd: Introduce fsp_is_alternate_stream()

To me this is more descriptive than "fsp->base_fsp != NULL". If this
turns out to be a performance problem, I would go and make this a
static inline in smbd/proto.h.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(backported from commit 21b380ca133417df096e2b262a5da41faff186ea)
[slow@samba.org: only backport the function, skip all changed callers]
source3/smbd/files.c
source3/smbd/proto.h