From: Jeremy Allison Date: Thu, 4 Aug 2022 20:08:51 +0000 (-0700) Subject: s3: smbd: Minor cleanup in parse_dfs_path(). X-Git-Tag: samba-4.17.0rc1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef1412f85273d27edbe4f8a02121c2d5d7479ac;p=thirdparty%2Fsamba.git s3: smbd: Minor cleanup in parse_dfs_path(). allow_wcards parameter is not used or looked at. Remove it. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 565c2a37b3b..a716f579e4b 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -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; }