From 63e569a48cd977299999e213beff00c2cc5504b5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 10 Aug 2022 21:42:31 -0700 Subject: [PATCH] s3: smbd: Remove allow_broken_path from create_junction(). We no longer look at it, we know we must have a canonicalized DFS path here. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/rpc_server/dfs/srv_dfs_nt.c | 1 - source3/smbd/msdfs.c | 1 - source3/smbd/proto.h | 1 - 3 files changed, 3 deletions(-) diff --git a/source3/rpc_server/dfs/srv_dfs_nt.c b/source3/rpc_server/dfs/srv_dfs_nt.c index 2ff6796cd5d..7b5119bbaf7 100644 --- a/source3/rpc_server/dfs/srv_dfs_nt.c +++ b/source3/rpc_server/dfs/srv_dfs_nt.c @@ -403,7 +403,6 @@ WERROR _dfs_GetInfo(struct pipes_struct *p, struct dfs_GetInfo *r) } ret = create_junction(ctx, r->in.dfs_entry_path, - true, /* allow broken_path */ jn); if (!ret) { return WERR_NERR_DFSNOSUCHSERVER; diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 83121bb0227..a79bcff5197 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1458,7 +1458,6 @@ int setup_dfs_referral(connection_struct *orig_conn, bool create_junction(TALLOC_CTX *ctx, const char *dfs_path, - bool allow_broken_path, struct junction_map *jucn) { const struct loadparm_substitution *lp_sub = diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 73bff98e553..632ef45ffdf 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -533,7 +533,6 @@ int setup_dfs_referral(connection_struct *orig_conn, char **ppdata, NTSTATUS *pstatus); bool create_junction(TALLOC_CTX *ctx, const char *dfs_path, - bool allow_broken_path, struct junction_map *jucn); struct referral; char *msdfs_link_string(TALLOC_CTX *ctx, -- 2.47.3