s3:loadparm: reinit_globals in lp_load_with_registry_shares()
authorRalph Boehme <slow@samba.org>
Tue, 10 Jul 2018 06:11:31 +0000 (08:11 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 7 Sep 2018 15:26:14 +0000 (17:26 +0200)
commit3aca3f24d4bdacc11278388934b0b411d518d7b0
tree9ade8a7de0215e046256c737aa65969647b59412
parent8c3b62e6231e62feafacf2a7ee4c9d41cd27a4a1
s3:loadparm: reinit_globals in lp_load_with_registry_shares()

This was set to false in 0e0d77519c27038b30fec92d542198e97be767d9 based
on the assumption that callers would have no need to call
lp_load_initial_only() with a later call to lp_load_something().

This is not quite correct, since for accessing registry config on a
cluster with include=registry, we need messaging up and running which
*itself* requires loadparm to be initialized to get the statedir,
lockdir asf. directories.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/param/loadparm.c