From: Jeremy Allison Date: Thu, 11 Aug 2022 18:06:05 +0000 (-0700) Subject: s3: smbd: In create_junction() remove hostname check. parse_dfs_path_strict() already... X-Git-Tag: talloc-2.4.0~1249 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b33787fbb0064780ab16fdd8898742f80fab42a7;p=thirdparty%2Fsamba.git s3: smbd: In create_junction() remove hostname check. parse_dfs_path_strict() already does this. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 980078bdc40..90611802738 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1485,14 +1485,6 @@ bool create_junction(TALLOC_CTX *ctx, return False; } - /* check if path is dfs : validate first token */ - if (!is_myname_or_ipaddr(hostname)) { - DEBUG(4,("create_junction: Invalid hostname %s " - "in dfs path %s\n", - hostname, dfs_path)); - return False; - } - /* Check for a non-DFS share */ snum = lp_servicenumber(servicename);