diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-10 22:11:55 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-05-13 18:50:23 +0200 |
commit | ef2a7c653808a5e0abdd87dc74579bb6c006b730 (patch) | |
tree | 3e48f6992efbe39fea115fc29797ce9006f31274 /source3/lib/netapi | |
parent | a37de9a95974c138d264d9cb0c7829bb426bb2d6 (diff) | |
download | samba-ef2a7c653808a5e0abdd87dc74579bb6c006b730.tar.gz samba-ef2a7c653808a5e0abdd87dc74579bb6c006b730.tar.bz2 samba-ef2a7c653808a5e0abdd87dc74579bb6c006b730.zip |
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
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 255e0930b8..06e353d6ce 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -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); |