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/lib/debug.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source3/lib/debug.c') diff --git a/source3/lib/debug.c b/source3/lib/debug.c index 321b08e099..ea0aad2c90 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -89,7 +89,6 @@ static struct { static char *debugf = NULL; bool debug_warn_unknown_class = True; bool debug_auto_add_unknown_class = True; -bool AllowDebugChange = True; /* used to check if the user specified a @@ -469,9 +468,6 @@ bool debug_parse_levels(const char *params_str) /* Just in case */ debug_init(); - if (AllowDebugChange == False) - return True; - params = str_list_make_v3(talloc_tos(), params_str, NULL); if (debug_parse_params(params)) { -- cgit