1
0
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:
Stefan Metzmacher 2007-05-01 03:25:17 +00:00 committed by Gerald (Jerry) Carter
parent 255acbb113
commit f65fcd764b
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}

View File

@ -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();