s3: Remove the smbd_server_conn ref from create_junction
authorVolker Lendecke <vl@samba.org>
Sat, 24 Sep 2011 03:53:28 +0000 (05:53 +0200)
committerVolker Lendecke <vlendec@samba.org>
Mon, 26 Sep 2011 14:33:29 +0000 (16:33 +0200)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Sep 26 16:33:30 CEST 2011 on sn-devel-104

source3/rpc_server/dfs/srv_dfs_nt.c
source3/smbd/msdfs.c
source3/smbd/proto.h

index 56f4de551da3c7516637c4a6bc121ac596b037bf..efb0a1ec0a06c920f085f25b7313a5258e6775fc 100644 (file)
@@ -362,7 +362,8 @@ WERROR _dfs_GetInfo(struct pipes_struct *p, struct dfs_GetInfo *r)
                return WERR_NOMEM;
        }
 
-       if(!create_junction(ctx, r->in.dfs_entry_path, jn)) {
+       if(!create_junction(ctx, r->in.dfs_entry_path,
+                           !smbd_server_conn->using_smb2, jn)) {
                return WERR_DFS_NO_SUCH_SERVER;
        }
 
index 66258a22fd9e43e8f84e41bcfdc64f3a978b93c9..64a6b40820d88aafce938d83f4131f1a5e1436c2 100644 (file)
@@ -1350,6 +1350,7 @@ 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)
 {
        int snum;
@@ -1360,8 +1361,8 @@ bool create_junction(TALLOC_CTX *ctx,
        if (!pdp) {
                return False;
        }
-       status = parse_dfs_path(NULL, dfs_path, False,
-                               !smbd_server_conn->using_smb2, pdp, &dummy);
+       status = parse_dfs_path(NULL, dfs_path, False, allow_broken_path,
+                               pdp, &dummy);
        if (!NT_STATUS_IS_OK(status)) {
                return False;
        }
index 1c8fd1f5569af0a343043f40366064347a95b41f..cf7c90450ad4dcbaf804f2f9a3c2c1f15f3dff48 100644 (file)
@@ -458,6 +458,7 @@ 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);
 bool create_msdfs_link(const struct junction_map *jucn);
 bool remove_msdfs_link(const struct junction_map *jucn);