From: Jeremy Allison Date: Thu, 11 Aug 2022 04:33:32 +0000 (-0700) Subject: s3: smbd: Change get_referred_path() to use parse_dfs_path_strict(). X-Git-Tag: talloc-2.4.0~1251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6869e015d54c2ec11240c2675d9f840308845a14;p=thirdparty%2Fsamba.git s3: smbd: Change get_referred_path() to use parse_dfs_path_strict(). 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 Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 7aa5531e1c2..a0ed3049cdd 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -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)) {