diff options
author | Jeremy Allison <jra@samba.org> | 2002-02-01 22:15:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-02-01 22:15:18 +0000 |
commit | 8d63a817bb04da3c7cc43e342a9034f5f23c5041 (patch) | |
tree | de549371c7728978ab045eab1a658b29007cc9ad /source/lib/debug.c | |
parent | f98c14e8d6d8f1def0edcd02e1dfe66bab8a2ab6 (diff) | |
download | samba-8d63a817bb04da3c7cc43e342a9034f5f23c5041.tar.gz |
Move over to RELEASE branch.
Jeremy.
Diffstat (limited to 'source/lib/debug.c')
-rw-r--r-- | source/lib/debug.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c index 982d59acc10..d3ba8f9c370 100644 --- a/source/lib/debug.c +++ b/source/lib/debug.c @@ -85,6 +85,7 @@ BOOL append_log = False; int DEBUGLEVEL_CLASS[DBGC_LAST]; int DEBUGLEVEL = DEBUGLEVEL_CLASS; +BOOL AllowDebugChange = True; /* -------------------------------------------------------------------------- ** @@ -213,6 +214,8 @@ BOOL debug_parse_levels(char *params_str) char *params[DBGC_LAST]; int debuglevel_class[DBGC_LAST]; + if (AllowDebugChange == False) + return True; ZERO_ARRAY(params); ZERO_ARRAY(debuglevel_class); @@ -336,7 +339,8 @@ BOOL reopen_logs( void ) log_overflow = True; DEBUG(0, ("Unable to open new log file %s: %s\n", debugf, strerror(errno))); log_overflow = False; - fflush(dbf); + if (dbf) + fflush(dbf); ret = False; } else { setbuf(new_dbf, NULL); |