]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: We have the fsp available, use fsp_is_alternate_stream()
authorVolker Lendecke <vl@samba.org>
Fri, 11 Feb 2022 17:49:53 +0000 (18:49 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 22 Feb 2022 09:21:29 +0000 (09:21 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/close.c

index c13826567d5ff8ff16f2b300e1638f5150406282..4ad8e42f319daa5add35447054d00a921109e83d 100644 (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);