From: Volker Lendecke Date: Mon, 13 Jun 2022 14:15:21 +0000 (+0200) Subject: smbd: Don't create a fsp->base_fsp for a "::$DATA" stream X-Git-Tag: tevent-0.13.0~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53f9b32a95b66d1309ac47361cd9749c04714acb;p=thirdparty%2Fsamba.git smbd: Don't create a fsp->base_fsp for a "::$DATA" stream "::$DATA" is the main file, we don't need the overhead of base_fsp here. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 8122241dae3..3d8031bf21f 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -528,7 +528,7 @@ NTSTATUS openat_pathref_fsp(const struct files_struct *dirfsp, } if ((conn->fs_capabilities & FILE_NAMED_STREAMS) - && is_ntfs_stream_smb_fname(smb_fname)) + && is_named_stream(smb_fname)) { /* * We must use smb_fname here, not fsp->fsp_name