1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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 <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2022-06-13 16:15:21 +02:00 committed by Ralph Boehme
parent 08f4ee6cab
commit 53f9b32a95

View 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