]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Don't create a fsp->base_fsp for a "::$DATA" stream
authorVolker Lendecke <vl@samba.org>
Mon, 13 Jun 2022 14:15:21 +0000 (16:15 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 25 Jul 2022 12:04:33 +0000 (12:04 +0000)
"::$DATA" is the main file, we don't need the overhead of base_fsp here.

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

index 8122241dae31f71b157ad7acc9826f5d227acf8d..3d8031bf21f0a25ce90bcc3486ed8590f2fceb3b 100644 (file)
@@ -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