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/torture/masktest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c index b8bcb4ade0..335bc4ca22 100644 --- a/source3/torture/masktest.c +++ b/source3/torture/masktest.c @@ -34,7 +34,6 @@ static int ignore_dot_errors = 0; extern char *optarg; extern int optind; -extern bool AllowDebugChange; /* a test fn for LANMAN mask support */ static int ms_fnmatch_lanman_core(const char *pattern, const char *string) @@ -484,8 +483,7 @@ static void usage(void) setlinebuf(stdout); - DEBUGLEVEL = 0; - AllowDebugChange = False; + lp_set_cmdline("log level", "0"); if (argc < 2 || argv[1][0] == '-') { usage(); -- cgit