mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r22622: make it possible to pass the config file via 'SMB_CONF_PATH' envvar
very usefull for make testenv! this makes it also possible to pass a config file to smbscript metze
This commit is contained in:
parent
255acbb113
commit
f65fcd764b
@ -69,6 +69,10 @@ static void popt_common_callback(poptContext con,
|
||||
|
||||
/* and logging */
|
||||
setup_logging(pname, DEBUG_STDOUT);
|
||||
|
||||
if (getenv("SMB_CONF_PATH")) {
|
||||
lp_set_cmdline("config file", getenv("SMB_CONF_PATH"));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -52,6 +52,10 @@ int main(int argc, const char **argv)
|
||||
|
||||
fault_setup(argv[0]);
|
||||
|
||||
if (getenv("SMB_CONF_PATH")) {
|
||||
lp_set_cmdline("config file", getenv("SMB_CONF_PATH"));
|
||||
}
|
||||
|
||||
ldb_global_init();
|
||||
|
||||
gensec_init();
|
||||
|
Loading…
Reference in New Issue
Block a user