s3: smbd: As srvstr_get_path_internal() ignores the wcard parameter, use check_path_s...
authorJeremy Allison <jra@samba.org>
Wed, 30 Sep 2020 00:16:26 +0000 (17:16 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 30 Sep 2020 20:46:41 +0000 (20:46 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index fe56d44d14f7669156bfd8380bccec967cc2ff1f..4c83d09ab3e21c62bbdc2cb8b3f9f1328b17462b 100644 (file)
@@ -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;