summaryrefslogtreecommitdiffstats
path: root/source3/utils/nmblookup.c
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-01-07 21:32:22 +0000
committerHerb Lewis <herb@samba.org>2002-01-07 21:32:22 +0000
commitf1256e847e6820c29f8bc74db4609d8aa282a1a1 (patch)
treeef8ffff0a67d9d129e950259df11f803c8a05d48 /source3/utils/nmblookup.c
parentbff833e76af390557428ba6aabdbc635b2c120e9 (diff)
downloadsamba-f1256e847e6820c29f8bc74db4609d8aa282a1a1.tar.gz
samba-f1256e847e6820c29f8bc74db4609d8aa282a1a1.tar.xz
samba-f1256e847e6820c29f8bc74db4609d8aa282a1a1.zip
merge changes from 2.2 branch to prevent smb.conf from changing debug level
of commands when specified on command line. (This used to be commit 39d6b31e14144a3ff4b992d4286b706147e58566)
Diffstat (limited to 'source3/utils/nmblookup.c')
-rw-r--r--source3/utils/nmblookup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c
index 5b22872cb37..db70cb302a5 100644
--- a/source3/utils/nmblookup.c
+++ b/source3/utils/nmblookup.c
@@ -24,6 +24,8 @@
#include "includes.h"
+extern BOOL AllowDebugChange;
+
static BOOL use_bcast = True;
static BOOL got_bcast = False;
static struct in_addr bcast_addr;
@@ -195,6 +197,9 @@ int main(int argc,char *argv[])
int commandline_debuglevel = -2;
DEBUGLEVEL = 1;
+ /* Prevent smb.conf setting from overridding */
+ AllowDebugChange = False;
+
*lookup = 0;
setup_logging(argv[0],True);