summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-01-02 04:23:17 +0000
committerTim Potter <tpot@samba.org>2001-01-02 04:23:17 +0000
commit83a160587effb4bfa5d61a630ca31d78f9fa535a (patch)
tree133dfb04b236ce5127ab8431c9a5dee5aa50f51c /source3
parent8f5d55eb365117b27333a77956e32ca7dac9cfab (diff)
downloadsamba-83a160587effb4bfa5d61a630ca31d78f9fa535a.tar.gz
samba-83a160587effb4bfa5d61a630ca31d78f9fa535a.tar.bz2
samba-83a160587effb4bfa5d61a630ca31d78f9fa535a.zip
Fixed -d option for rpcclient.
(This used to be commit 44c5eb4def9a264f660b2398d28b72f54e6547e6)
Diffstat (limited to 'source3')
-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();