Removed version number from file header.
[kai/samba.git] / source3 / lib / debug.c
index a77328e34321d10a5b1ac3de238c677891a24957..87a8d429994b149e58d9ea3625692053f30f8254 100644 (file)
@@ -1,6 +1,5 @@
 /*
-   Unix SMB/Netbios implementation.
-   Version 1.9.
+   Unix SMB/CIFS implementation.
    Samba utility functions
    Copyright (C) Andrew Tridgell 1992-1998
 
@@ -86,6 +85,7 @@ BOOL    append_log = False;
 int     DEBUGLEVEL_CLASS[DBGC_LAST];
 BOOL    DEBUGLEVEL_CLASS_ISSET[DBGC_LAST];
 int     DEBUGLEVEL = DEBUGLEVEL_CLASS;
+BOOL   AllowDebugChange = True;
 
 
 /* -------------------------------------------------------------------------- **
@@ -222,6 +222,8 @@ BOOL debug_parse_levels(char *params_str)
        int  debuglevel_class[DBGC_LAST];       
        BOOL debuglevel_class_isset[DBGC_LAST];
 
+       if (AllowDebugChange == False)
+               return True;
        ZERO_ARRAY(params);
        ZERO_ARRAY(debuglevel_class);
        ZERO_ARRAY(debuglevel_class_isset);