smbd: Introduce fsp_is_alternate_stream()
commit3160ff28e87f95f421ed167d8e079903c5737cb3
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 07:54:13 +0000 (6 07:54 +0000)
tree59a1ebaa87ad4da4c3ead7d47f24db1d0d1023a1
parentdf7d6f0c48612feea428643006d32c2292c662e2
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