diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-10-29 15:06:36 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-11-02 04:36:04 +0000 |
commit | cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb (patch) | |
tree | 9afa59acaf2a8665e9bc9dfc8bdc177db4a7ca36 /source3/torture | |
parent | 9da4ace1d9789d300ab298bc34694c44b2062f30 (diff) | |
download | samba-cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb.tar.gz samba-cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb.tar.bz2 samba-cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb.zip |
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
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/masktest.c | 4 |
1 files changed, 1 insertions, 3 deletions
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(); |