summaryrefslogtreecommitdiffstats
path: root/source/lib/debug.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-22 19:46:36 +0000
committerJeremy Allison <jra@samba.org>2001-06-22 19:46:36 +0000
commitb30485f2a826899e52c419c5e5c97289bf2cc732 (patch)
tree2a1bfc84127364beebeb9865508074936f1e3710 /source/lib/debug.c
parent097c4632189cb79090aafe422580a0acde3bb381 (diff)
downloadsamba-b30485f2a826899e52c419c5e5c97289bf2cc732.tar.gz
samba-b30485f2a826899e52c419c5e5c97289bf2cc732.tar.xz
samba-b30485f2a826899e52c419c5e5c97289bf2cc732.zip
Fix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy.
Diffstat (limited to 'source/lib/debug.c')
-rw-r--r--source/lib/debug.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c
index f7ad324e393..9ce5ee75e6d 100644
--- a/source/lib/debug.c
+++ b/source/lib/debug.c
@@ -310,14 +310,6 @@ BOOL reopen_logs( void )
FILE *new_dbf = NULL;
BOOL ret = True;
- if (DEBUGLEVEL_CLASS[ DBGC_ALL ] <= 0) {
- if (dbf) {
- (void)fclose(dbf);
- dbf = NULL;
- }
- return True;
- }
-
oldumask = umask( 022 );
pstrcpy(fname, debugf );