From 83a160587effb4bfa5d61a630ca31d78f9fa535a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 2 Jan 2001 04:23:17 +0000 Subject: Fixed -d option for rpcclient. (This used to be commit 44c5eb4def9a264f660b2398d28b72f54e6547e6) --- source3/lib/cmd_interp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source3') 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(); -- cgit