From: Jeremy Allison Date: Fri, 3 Dec 2021 19:48:23 +0000 (-0800) Subject: s3: smbd: parse_dfs_path() can ignore wildcards. X-Git-Tag: tdb-1.4.6~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24002be5883692fa6a586f66bf46f30cee72d4ba;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 1feeec6fff2..c003b442baa 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -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); }