git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a37de9a
)
s3-netapi Initialise global variables in libnetapi
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 10 May 2011 20:11:55 +0000
(22:11 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 13 May 2011 16:50:23 +0000
(18:50 +0200)
It is important to initalise the global variables when loading this
configuration for the potentially first time.
Andrew Bartlett
source3/lib/netapi/netapi.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/netapi.c
b/source3/lib/netapi/netapi.c
index 255e0930b8472796578c3eae6b02fb12b5bb7b07..06e353d6ce6367986348e5d09c8b381776c04164 100644
(file)
--- 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,
fals
e)) {
+ if (!lp_load(get_dyn_CONFIGFILE(), true, false, false,
tru
e)) {
TALLOC_FREE(frame);
fprintf(stderr, "error loading %s\n", get_dyn_CONFIGFILE() );
return W_ERROR_V(WERR_GENERAL_FAILURE);