]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Change get_referred_path() to use parse_dfs_path_strict().
authorJeremy Allison <jra@samba.org>
Thu, 11 Aug 2022 04:33:32 +0000 (21:33 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 28 Aug 2022 19:59:28 +0000 (19:59 +0000)
Remove #ifdef's around parse_dfs_path_strict() as we're
now using it.

Note we no longer use allow_broken_path.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/msdfs.c

index 7aa5531e1c2687f97238cb1092ed5c0841203f19..a0ed3049cdd8754bca07e53d67c7b99ac84118d6 100644 (file)
@@ -80,7 +80,6 @@ done:
        return match;
 }
 
-#if 0
 /**********************************************************************
  Parse a DFS pathname of the form(s)
 
@@ -221,7 +220,6 @@ out:
        TALLOC_FREE(pathname_local);
        return status;
 }
-#endif
 
 /**********************************************************************
  Parse a DFS pathname of the form /hostname/service/reqpath
@@ -1236,11 +1234,10 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
 
        *self_referralp = False;
 
-       status = parse_dfs_path(frame,
-                               NULL,
+       status = parse_dfs_path_strict(
+                               frame,
                                dfs_path,
-                               allow_broken_path,
-                               NULL,
+                               NULL, /* hostname */
                                &servicename,
                                &reqpath);
        if (!NT_STATUS_IS_OK(status)) {