summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-02-14 22:11:07 +0000
committerHerb Lewis <herb@samba.org>2002-02-14 22:11:07 +0000
commit2ff50ba28a7b893ad565e0abd97d4e4cc4e2c0c7 (patch)
tree5734a018dd01861664a494dd138350d537a8d0ed
parent897f463dad2698bd4490fa1e15e97f54a3533ab4 (diff)
downloadsamba-2ff50ba28a7b893ad565e0abd97d4e4cc4e2c0c7.tar.gz
samba-2ff50ba28a7b893ad565e0abd97d4e4cc4e2c0c7.tar.xz
samba-2ff50ba28a7b893ad565e0abd97d4e4cc4e2c0c7.zip
allow command line arg to override smb.conf log level
-rw-r--r--source/nmbd/nmbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c
index fa4e1c4cfd9..de955b79fe4 100644
--- a/source/nmbd/nmbd.c
+++ b/source/nmbd/nmbd.c
@@ -662,6 +662,7 @@ static void usage(char *pname)
extern FILE *dbf;
extern char *optarg;
extern BOOL append_log;
+ extern BOOL AllowDebugChange;
BOOL opt_interactive = False;
pstring logfile;
@@ -754,6 +755,7 @@ static void usage(char *pname)
break;
case 'd':
DEBUGLEVEL = atoi(optarg);
+ AllowDebugChange = False;
break;
case 'p':
global_nmb_port = atoi(optarg);