]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Filter out "::$DATA" for query name information
authorVolker Lendecke <vl@samba.org>
Fri, 11 Feb 2022 17:09:56 +0000 (18:09 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 17 Feb 2022 17:13:35 +0000 (17:13 +0000)
Make this piece of code robust against having "::$DATA" passed in.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c

index aaeca483022af48d8c441e45427a0b7e811b5ab9..ce274d196be4a92bf4b6337829b90ecf2bc0a8ef 100644 (file)
@@ -5249,7 +5249,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
                if (!dos_fname) {
                        return NT_STATUS_NO_MEMORY;
                }
-               if (is_ntfs_stream_smb_fname(smb_fname)) {
+               if (is_named_stream(smb_fname)) {
                        dos_fname = talloc_asprintf(dos_fname, "%s",
                                                    smb_fname->stream_name);
                        if (!dos_fname) {