s3: smbd: Minor cleanup in parse_dfs_path().
authorJeremy Allison <jra@samba.org>
Thu, 4 Aug 2022 20:08:51 +0000 (13:08 -0700)
committerVolker Lendecke <vl@samba.org>
Fri, 5 Aug 2022 09:24:30 +0000 (09:24 +0000)
allow_wcards parameter is not used or looked at.

Remove it.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/msdfs.c

index 565c2a37b3b14aec3a7b899b3a1d2bd593f6e4f8..a716f579e4bfc3644d879e56f3edd155c480e9df 100644 (file)
@@ -60,7 +60,6 @@
 
 static NTSTATUS parse_dfs_path(connection_struct *conn,
                                const char *pathname,
-                               bool allow_wcards,
                                bool allow_broken_path,
                                struct dfs_path *pdp) /* MUST BE TALLOCED */
 {
@@ -871,7 +870,7 @@ NTSTATUS dfs_redirect(TALLOC_CTX *ctx,
                return NT_STATUS_NO_MEMORY;
        }
 
-       status = parse_dfs_path(conn, path_in, false,
+       status = parse_dfs_path(conn, path_in,
                                allow_broken_path, pdp);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(pdp);
@@ -1021,7 +1020,7 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
 
        *self_referralp = False;
 
-       status = parse_dfs_path(NULL, dfs_path, False, allow_broken_path, pdp);
+       status = parse_dfs_path(NULL, dfs_path, allow_broken_path, pdp);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(frame);
                return status;
@@ -1270,7 +1269,7 @@ bool create_junction(TALLOC_CTX *ctx,
        if (!pdp) {
                return False;
        }
-       status = parse_dfs_path(NULL, dfs_path, False, allow_broken_path, pdp);
+       status = parse_dfs_path(NULL, dfs_path, allow_broken_path, pdp);
        if (!NT_STATUS_IS_OK(status)) {
                return False;
        }