From 2fa338cdc99276a5f85ad54cb88b372ffe8ab063 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 2 Dec 2007 17:09:43 +0100 Subject: r26226: Avoid more uses of global_loadparm. (This used to be commit 6cbce47a3eaef76a89db7cd0ab0d4f6441fc720d) --- source4/lib/ldb/tools/cmdline.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/lib') 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; -- cgit