mirror of
https://github.com/samba-team/samba.git
synced 2025-07-06 08:59:08 +03:00
r26275: return loadparm context in lp_load.
(This used to be commit d01f0f4c20
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
fc2f06d31b
commit
b038240ac7
@ -49,18 +49,19 @@ int main(int argc, const char **argv)
|
||||
const char *fname;
|
||||
struct MprVar *return_var;
|
||||
int exit_status, i;
|
||||
struct loadparm_context *lp_ctx;
|
||||
|
||||
fault_setup(argv[0]);
|
||||
|
||||
if (getenv("SMB_CONF_PATH")) {
|
||||
lp_load(getenv("SMB_CONF_PATH"));
|
||||
lp_load(getenv("SMB_CONF_PATH"), &lp_ctx);
|
||||
} else {
|
||||
lp_load(dyn_CONFIGFILE);
|
||||
lp_load(dyn_CONFIGFILE, &lp_ctx);
|
||||
}
|
||||
|
||||
ldb_global_init();
|
||||
|
||||
gensec_init(global_loadparm);
|
||||
gensec_init(lp_ctx);
|
||||
mprSetCtx(mem_ctx);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user