1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3: smbd: parse_dfs_path() can ignore wildcards.

If one is passed to filename_convert(), it will error out there
with NT_STATUS_OBJECT_NAME_INVALID.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2021-12-03 11:48:23 -08:00 committed by Ralph Boehme
parent 52ca4bf6d5
commit 24002be588

View File

@ -215,12 +215,6 @@ static NTSTATUS parse_dfs_path(connection_struct *conn,
if (pdp->posix_path) {
status = check_path_syntax_posix(pdp->reqpath);
} else {
if (!allow_wcards) {
bool has_wcard = ms_has_wild(pdp->reqpath);
if (has_wcard) {
return NT_STATUS_INVALID_PARAMETER;
}
}
status = check_path_syntax(pdp->reqpath);
}