]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: parse_dfs_path() can ignore wildcards.
authorJeremy Allison <jra@samba.org>
Fri, 3 Dec 2021 19:48:23 +0000 (11:48 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 07:17:29 +0000 (07:17 +0000)
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>
source3/smbd/msdfs.c

index 1feeec6fff2ba0e54378b19a7912106d728f88a7..c003b442baa50245208f1423c009a4e0e18d4d5a 100644 (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);
        }