diff options
author | Günther Deschner <gd@samba.org> | 2008-06-05 18:40:26 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-05 18:49:21 +0200 |
commit | 20ec11ac2885a78b0ce71c72962aa6bca101897a (patch) | |
tree | 2f8b333006a0d191b147114974858bc4c709340b | |
parent | a0d5033e8c2192f0e0efde285a24ad9a28d64c70 (diff) | |
download | samba-20ec11ac2885a78b0ce71c72962aa6bca101897a.tar.gz samba-20ec11ac2885a78b0ce71c72962aa6bca101897a.tar.bz2 samba-20ec11ac2885a78b0ce71c72962aa6bca101897a.zip |
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)
-rw-r--r-- | source3/utils/net.c | 4 | ||||
-rw-r--r-- | source3/utils/net.h | 1 |
2 files changed, 3 insertions, 2 deletions
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[]; }; |