summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/cmd_interp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/lib/cmd_interp.c b/source3/lib/cmd_interp.c
index 2c422f577e..7d40a38136 100644
--- a/source3/lib/cmd_interp.c
+++ b/source3/lib/cmd_interp.c
@@ -934,6 +934,7 @@ static uint32 cmd_set(CLIENT_INFO *info, int argc, char *argv[])
pstring term_code;
pstring password; /* local copy only, if one is entered */
fstring srv_name;
+ int new_debuglevel = -1;
password[0] = 0;
usr_creds = &usr;
@@ -1086,9 +1087,9 @@ static uint32 cmd_set(CLIENT_INFO *info, int argc, char *argv[])
{
cmd_set_options |= CMD_DBLV;
if (*optarg == 'A')
- DEBUGLEVEL = 10000;
+ new_debuglevel = 10000;
else
- DEBUGLEVEL = atoi(optarg);
+ new_debuglevel = atoi(optarg);
break;
}
@@ -1163,6 +1164,10 @@ static uint32 cmd_set(CLIENT_INFO *info, int argc, char *argv[])
}
+ if (new_debuglevel != -1) {
+ DEBUGLEVEL = new_debuglevel;
+ }
+
if (cmd_set_options & CMD_INTER)
{
load_interfaces();