From 53f9b32a95b66d1309ac47361cd9749c04714acb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 13 Jun 2022 16:15:21 +0200 Subject: [PATCH] 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 --- source3/smbd/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3