smbd: add create_conn_struct_cwd()
authorRalph Boehme <slow@samba.org>
Fri, 28 May 2021 07:25:22 +0000 (09:25 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jul 2021 10:13:08 +0000 (10:13 +0000)
commit48b2dc3c5cc31192ff4a63036c9c5624cf199c34
tree9881ec959c0f7bc80de71fbc506c771432ceba58
parent60e091a153ee46f7512c30cfc46aa19d564073e0
smbd: add create_conn_struct_cwd()

Compared to create_conn_struct_tos_cwd() this takes a TALLOC_CTX and
tevent_context as additional arguments and the resulting connection_struct is
stable across the lifetime of mem_ctx and ev.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14740

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 9a2d6bcfd5797dd4db764921548c8dca6dd0eb21)
source3/smbd/msdfs.c
source3/smbd/proto.h