summaryrefslogtreecommitdiff
path: root/source3/utils/smbcacls.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-29 15:06:36 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-11-02 04:36:04 +0000
commitcf4de8ec2c8df2ceabbe3d836d296b058e7b19fb (patch)
tree9afa59acaf2a8665e9bc9dfc8bdc177db4a7ca36 /source3/utils/smbcacls.c
parent9da4ace1d9789d300ab298bc34694c44b2062f30 (diff)
downloadsamba-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/utils/smbcacls.c')
-rw-r--r--source3/utils/smbcacls.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 5ccdae6d08..4de24dc767 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -27,8 +27,6 @@
#include "rpc_client/cli_lsarpc.h"
#include "../libcli/security/security.h"
-extern bool AllowDebugChange;
-
static int test_args;
#define CREATE_ACCESS_READ READ_CONTROL_ACCESS
@@ -1204,8 +1202,7 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
/* set default debug level to 1 regardless of what smb.conf sets */
setup_logging( "smbcacls", DEBUG_STDERR);
- DEBUGLEVEL_CLASS[DBGC_ALL] = 1;
- AllowDebugChange = false;
+ lp_set_cmdline("log level", "1");
setlinebuf(stdout);