]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: pass session info to create_conn_struct_tos_cwd()
authorRalph Boehme <slow@samba.org>
Fri, 13 Dec 2019 15:19:37 +0000 (16:19 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 20 Dec 2019 11:41:41 +0000 (11:41 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/msdfs.c

index a503f312b955569595b870059ab1bc5e3408ea29..b14d953519151d3d5bcfa5937e1e06a5d55a675d 100644 (file)
@@ -1121,7 +1121,7 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
        status = create_conn_struct_tos_cwd(global_messaging_context(),
                                            snum,
                                            lp_path(frame, lp_sub, snum),
-                                           NULL,
+                                           session_info,
                                            &c);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(frame);
@@ -1340,7 +1340,7 @@ static bool junction_to_local_path_tos(const struct junction_map *jucn,
        status = create_conn_struct_tos_cwd(global_messaging_context(),
                                            snum,
                                            lp_path(talloc_tos(), lp_sub, snum),
-                                           NULL,
+                                           session_info,
                                            &c);
        if (!NT_STATUS_IS_OK(status)) {
                return False;
@@ -1571,7 +1571,7 @@ static size_t count_dfs_links(TALLOC_CTX *ctx,
        status = create_conn_struct_tos_cwd(global_messaging_context(),
                                            snum,
                                            connect_path,
-                                           NULL,
+                                           session_info,
                                            &c);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(3, ("create_conn_struct failed: %s\n",
@@ -1675,7 +1675,7 @@ static int form_junctions(TALLOC_CTX *ctx,
        status = create_conn_struct_tos_cwd(global_messaging_context(),
                                            snum,
                                            connect_path,
-                                           NULL,
+                                           session_info,
                                            &c);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(3, ("create_conn_struct failed: %s\n",