1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:loadparm: reinit_globals in lp_load_with_registry_shares()

This was set to false in 0e0d77519c 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>
This commit is contained in:
Ralph Boehme 2018-07-10 08:11:31 +02:00 committed by Andreas Schneider
parent 8c3b62e623
commit 3aca3f24d4

View File

@ -4120,7 +4120,7 @@ bool lp_load_with_registry_shares(const char *pszFname)
false, /* global_only */ false, /* global_only */
true, /* save_defaults */ true, /* save_defaults */
false, /* add_ipc */ false, /* add_ipc */
false, /* reinit_globals */ true, /* reinit_globals */
true, /* allow_include_registry */ true, /* allow_include_registry */
true); /* load_all_shares*/ true); /* load_all_shares*/
} }