summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-11 23:35:48 +0200
committerMichael Adam <obnox@samba.org>2009-08-12 00:34:33 +0200
commita038f1e05b8b7acb5e99257e59178e1ece4ce156 (patch)
treed5e308974006222e202a0012fe95bef2f1e2e99c
parentaa07baa8515d7e692238fe2cdce95d0eaf0b1691 (diff)
downloadsamba-a038f1e05b8b7acb5e99257e59178e1ece4ce156.tar.gz
samba-a038f1e05b8b7acb5e99257e59178e1ece4ce156.tar.bz2
samba-a038f1e05b8b7acb5e99257e59178e1ece4ce156.zip
s3:smbcacls: forbid change of debug level from config file
Michael
-rw-r--r--source3/utils/smbcacls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 2e41afc27f..dfc2a92031 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -23,6 +23,8 @@
#include "includes.h"
+extern bool AllowDebugChange;
+
static int test_args;
#define CREATE_ACCESS_READ READ_CONTROL_ACCESS
@@ -1043,6 +1045,7 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
DEBUGLEVEL_CLASS[DBGC_ALL] = 1;
dbf = x_stderr;
x_setbuf( x_stderr, NULL );
+ AllowDebugChange = false;
setlinebuf(stdout);