mirror of
https://github.com/samba-team/samba.git
synced 2025-07-16 20:59:12 +03:00
r26352: Don't make lp_load create a new context.
(This used to be commit d0d5c1a823
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
75ac6cd318
commit
dd7e5ed88c
@ -53,10 +53,12 @@ int main(int argc, const char **argv)
|
||||
|
||||
fault_setup(argv[0]);
|
||||
|
||||
global_loadparm = lp_ctx = loadparm_init(talloc_autofree_context());
|
||||
|
||||
if (getenv("SMB_CONF_PATH")) {
|
||||
lp_load(talloc_autofree_context(), getenv("SMB_CONF_PATH"), &lp_ctx);
|
||||
lp_load(lp_ctx, getenv("SMB_CONF_PATH"));
|
||||
} else {
|
||||
lp_load(talloc_autofree_context(), dyn_CONFIGFILE, &lp_ctx);
|
||||
lp_load(lp_ctx, dyn_CONFIGFILE);
|
||||
}
|
||||
|
||||
ldb_global_init();
|
||||
|
Reference in New Issue
Block a user