summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-02 17:09:43 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:47:02 +0100
commit2fa338cdc99276a5f85ad54cb88b372ffe8ab063 (patch)
tree7895291f7e8accda90aa896bb3b4c25d898a96c5 /source4/lib
parent33f26f8e547dae1c06282d6e6f89b3b37979a730 (diff)
downloadsamba-2fa338cdc99276a5f85ad54cb88b372ffe8ab063.tar.gz
samba-2fa338cdc99276a5f85ad54cb88b372ffe8ab063.tar.bz2
samba-2fa338cdc99276a5f85ad54cb88b372ffe8ab063.zip
r26226: Avoid more uses of global_loadparm.
(This used to be commit 6cbce47a3eaef76a89db7cd0ab0d4f6441fc720d)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/tools/cmdline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c
index 01ef04f5d2..5e3013600a 100644
--- a/source4/lib/ldb/tools/cmdline.c
+++ b/source4/lib/ldb/tools/cmdline.c
@@ -31,11 +31,12 @@
#include "auth/gensec/gensec.h"
#include "auth/auth.h"
#include "ldb_wrap.h"
+#include "param/param.h"
#endif
-/*
+/**
process command line options
*/
struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const char **argv,
@@ -208,7 +209,7 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const
#if (_SAMBA_BUILD_ >= 4)
/* Must be after we have processed command line options */
- gensec_init();
+ gensec_init(global_loadparm);
if (ldb_set_opaque(ldb, "sessionInfo", system_session(ldb))) {
goto failed;