mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
smbd: Filter out "::$DATA" for query name information
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>
This commit is contained in:
parent
259a716c5a
commit
61dd0096c2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user