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 --- nsswitch/wins.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nsswitch') diff --git a/nsswitch/wins.c b/nsswitch/wins.c index b4bc788f84..aa02f32ce1 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -94,8 +94,7 @@ static int wins_lookup_open_socket_in(void) static void nss_wins_init(void) { initialised = 1; - DEBUGLEVEL = 0; - AllowDebugChange = False; + lp_set_cmdline("log level", "0"); TimeInit(); setup_logging("nss_wins",False); -- cgit