From: Michael Adam Date: Tue, 11 Aug 2009 21:35:48 +0000 (+0200) Subject: s3:smbcacls: forbid change of debug level from config file X-Git-Tag: talloc-2.0.0~433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a038f1e05b8b7acb5e99257e59178e1ece4ce156;p=thirdparty%2Fsamba.git s3:smbcacls: forbid change of debug level from config file Michael --- diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 2e41afc27f3..dfc2a92031d 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);