smbd: Simplify smbXsrv_open_global_store()
commit95e3ad7e4378e1d82da8eb745147539a96a28f8c
authorVolker Lendecke <vl@samba.org>
Thu, 5 Jan 2023 15:18:37 +0000 (5 16:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 13 Feb 2023 09:53:38 +0000 (13 09:53 +0000)
tree05afaeeb7bc86a32a995b21af84f592b6a864076
parentfafebc46c8bf624736995f3a87819b3c075cb383
smbd: Simplify smbXsrv_open_global_store()

Avoid the dependency on global->db_rec. This makes the callers more
verbose, but it makes the data dependencies much more obvious. This
will enable removing smbXsrv_open_global0->db_rec at some point.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smbXsrv_open.c