1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3-netapi Initialise global variables in libnetapi

It is important to initalise the global variables when loading this
configuration for the potentially first time.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2011-05-10 22:11:55 +02:00
parent a37de9a959
commit ef2a7c6538

View File

@ -77,7 +77,7 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
lp_set_cmdline("log level", "0");
setup_logging("libnetapi", DEBUG_STDERR);
if (!lp_load(get_dyn_CONFIGFILE(), true, false, false, false)) {
if (!lp_load(get_dyn_CONFIGFILE(), true, false, false, true)) {
TALLOC_FREE(frame);
fprintf(stderr, "error loading %s\n", get_dyn_CONFIGFILE() );
return W_ERROR_V(WERR_GENERAL_FAILURE);