]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Remove allow_broken_path from create_junction().
authorJeremy Allison <jra@samba.org>
Thu, 11 Aug 2022 04:42:31 +0000 (21:42 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 28 Aug 2022 19:59:28 +0000 (19:59 +0000)
We no longer look at it, we know we must have a canonicalized
DFS path here.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/rpc_server/dfs/srv_dfs_nt.c
source3/smbd/msdfs.c
source3/smbd/proto.h

index 2ff6796cd5dbbeb400a8b575cad74c0c499bdea0..7b5119bbaf75a435da27f0c397492675d63772ed 100644 (file)
@@ -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;
index 83121bb0227460d900ee2c0a49e1804f792802d2..a79bcff519711c7a163f7baa75d1f288a01c0b76 100644 (file)
@@ -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 =
index 73bff98e553517775ae7e29b300cda2a80b56463..632ef45ffdf8b226ed68c990cb3a2bbe5a7ef5fc 100644 (file)
@@ -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,