From 20ec11ac2885a78b0ce71c72962aa6bca101897a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 5 Jun 2008 18:40:26 +0200 Subject: net: fix debuglevel handling. Kai, that one actually needs to stay a global external variable in order to support debuglevel definition only on the commandline for net. Guenther (This used to be commit f6ba7333ab31332198b59651b4252cb3f897b6aa) --- source3/utils/net.c | 4 +++- source3/utils/net.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/utils/net.c b/source3/utils/net.c index d8b8317d2f..91070a5da9 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -43,6 +43,8 @@ #include "includes.h" #include "utils/net.h" +extern bool AllowDebugChange; + #ifdef WITH_FAKE_KASERVER #include "utils/net_afs.h" #endif @@ -508,7 +510,7 @@ static struct functable net_func[] = { * Don't load debug level from smb.conf. It should be * set by cmdline arg or remain default (0) */ - c->AllowDebugChange = false; + AllowDebugChange = false; lp_load(get_dyn_CONFIGFILE(), true, false, false, true); argv_new = (const char **)poptGetArgs(pc); diff --git a/source3/utils/net.h b/source3/utils/net.h index f40222ed71..80024bd958 100644 --- a/source3/utils/net.h +++ b/source3/utils/net.h @@ -106,7 +106,6 @@ struct net_context { bool smb_encrypt; struct libnetapi_ctx *netapi_ctx; - bool AllowDebugChange; const char *share_type[]; }; -- cgit