From b21176875a9cab2302405c7df35a87ae34643e8a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 23 May 2012 12:46:20 +0200 Subject: [PATCH] s3:rpc_server/dfs: pass allow_broken_path=true to create_junction() DCERPC code can't be smb2 specific! I'm not sure if 'true' is the correct value here, but at least it matches the old behavior and the tcp and smb1 cases. metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Wed May 23 21:56:05 CEST 2012 on sn-devel-104 --- source3/rpc_server/dfs/srv_dfs_nt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/rpc_server/dfs/srv_dfs_nt.c b/source3/rpc_server/dfs/srv_dfs_nt.c index 0a9a7ccd62c..e765f15a8da 100644 --- a/source3/rpc_server/dfs/srv_dfs_nt.c +++ b/source3/rpc_server/dfs/srv_dfs_nt.c @@ -361,8 +361,10 @@ WERROR _dfs_GetInfo(struct pipes_struct *p, struct dfs_GetInfo *r) return WERR_NOMEM; } - if(!create_junction(ctx, r->in.dfs_entry_path, - !smbd_server_conn->using_smb2, jn)) { + ret = create_junction(ctx, r->in.dfs_entry_path, + true, /* allow broken_path */ + jn); + if (!ret) { return WERR_DFS_NO_SUCH_SERVER; } -- 2.11.4.GIT