]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
net: fix debuglevel handling.
authorGünther Deschner <gd@samba.org>
Thu, 5 Jun 2008 16:40:26 +0000 (18:40 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 5 Jun 2008 16:49:21 +0000 (18:49 +0200)
Kai, that one actually needs to stay a global external variable in order to
support debuglevel definition only on the commandline for net.

Guenther

source/utils/net.c
source/utils/net.h

index d8b8317d2fac5b88e62b49dcbb07e345447a402a..91070a5da9dd2ec711f5c2bc365317b4dcb44adc 100644 (file)
@@ -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);
index f40222ed71139a4eadf6bdb5260c27867067643a..80024bd958a7c4f2fe205539ebe60bf66d2e8ab1 100644 (file)
@@ -106,7 +106,6 @@ struct net_context {
        bool smb_encrypt;
        struct libnetapi_ctx *netapi_ctx;
 
-       bool AllowDebugChange;
        const char *share_type[];
 };