From cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 29 Oct 2010 15:06:36 +1100 Subject: s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() instead By removing this global variable, the API between the two different debug systems is made more similar. Both s3 and s4 now have lp_set_cmdline() which ensures that the smb.conf cannot overwrite these the user-specified log level. Andrew Bartlett --- source3/client/client.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source3/client/client.c') diff --git a/source3/client/client.c b/source3/client/client.c index a7c09cf6c5..2c02e318a5 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -5047,7 +5047,7 @@ static int do_message_op(struct user_auth_info *a_info) /* set default debug level to 1 regardless of what smb.conf sets */ setup_logging( "smbclient", DEBUG_DEFAULT_STDERR ); - DEBUGLEVEL_CLASS[DBGC_ALL] = 1; + lp_set_cmdline("log level", "1"); load_case_tables(); @@ -5190,12 +5190,6 @@ static int do_message_op(struct user_auth_info *a_info) poptGetArg(pc)); } - /* - * Don't load debug level from smb.conf. It should be - * set by cmdline arg or remain default (0) - */ - AllowDebugChange = false; - /* save the workgroup... FIXME!! do we need to do this for other options as well -- cgit