summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-03-26 19:11:31 +0000
committerJeremy Allison <jra@samba.org>1998-03-26 19:11:31 +0000
commit6cd35ce945a0ff3e9c787ec12ef81161a6aecbe4 (patch)
tree88f4692aceacfc3019c097c05a22bed8ec2c97f4 /source3/client
parent039761b05c2a1708ce6b247a058cc3d55f652a37 (diff)
downloadsamba-6cd35ce945a0ff3e9c787ec12ef81161a6aecbe4.tar.gz
samba-6cd35ce945a0ff3e9c787ec12ef81161a6aecbe4.tar.bz2
samba-6cd35ce945a0ff3e9c787ec12ef81161a6aecbe4.zip
client.c: Fixed problem where debug level on command line was overridden by smb.conf.
smbpasswd.c: Removed bugs I put in yesterday (thanks Luke :-) and added error message reporting for remote password changing. Jeremy. (This used to be commit 6a3394a285a250d1029cdd545dd0bf832284555a)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 3ce635fbeb..ef942c9867 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -3531,6 +3531,7 @@ static void usage(char *pname)
pstring term_code;
pstring new_name_resolve_order;
char *p;
+ int save_debuglevel = -1;
#ifdef KANJI
strcpy(term_code, KANJI);
@@ -3709,9 +3710,9 @@ static void usage(char *pname)
break;
case 'd':
if (*optarg == 'A')
- DEBUGLEVEL = 10000;
+ save_debuglevel = DEBUGLEVEL = 10000;
else
- DEBUGLEVEL = atoi(optarg);
+ save_debuglevel = DEBUGLEVEL = atoi(optarg);
break;
case 'l':
sprintf(debugf,"%s.client",optarg);
@@ -3756,6 +3757,14 @@ static void usage(char *pname)
fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf);
}
+ /*
+ * We need to reset the global debuglevel here, as
+ * lp_load will reset it from smb.conf.
+ */
+
+ if(save_debuglevel != -1)
+ DEBUGLEVEL = save_debuglevel;
+
codepage_initialise(lp_client_code_page());
interpret_coding_system(term_code);