1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

smbd: We have the fsp available, use fsp_is_alternate_stream()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2022-02-11 18:49:53 +01:00 committed by Ralph Boehme
parent 118b63bb2c
commit 1912a0d65c

View File

@ -441,7 +441,7 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
}
if ((conn->fs_capabilities & FILE_NAMED_STREAMS)
&& !is_ntfs_stream_smb_fname(fsp->fsp_name)) {
&& !fsp_is_alternate_stream(fsp)) {
status = delete_all_streams(conn, fsp->fsp_name);