From: Jeremy Allison Date: Wed, 30 Sep 2020 00:16:26 +0000 (-0700) Subject: s3: smbd: As srvstr_get_path_internal() ignores the wcard parameter, use check_path_s... X-Git-Tag: talloc-2.3.2~388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d7cdefb9d1454fa5975def03d40910b606c4d99;p=thirdparty%2Fsamba.git s3: smbd: As srvstr_get_path_internal() ignores the wcard parameter, use check_path_syntax() instead of check_path_syntax_wcard() Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index fe56d44d14f..4c83d09ab3e 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -270,7 +270,6 @@ static size_t srvstr_get_path_internal(TALLOC_CTX *ctx, bool posix_pathnames, NTSTATUS *err) { - bool ignore; size_t ret; *pp_dest = NULL; @@ -295,7 +294,7 @@ static size_t srvstr_get_path_internal(TALLOC_CTX *ctx, if (posix_pathnames) { *err = check_path_syntax_posix(*pp_dest); } else { - *err = check_path_syntax_wcard(*pp_dest, &ignore); + *err = check_path_syntax(*pp_dest); } return ret;