summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-22 19:46:38 +0000
committerJeremy Allison <jra@samba.org>2001-06-22 19:46:38 +0000
commit17d5d660b5853e64ea0225ce107ed619b2aeb064 (patch)
treedb33ac0559e3ff96114188a2b847b5b7c1088db7
parentb08ee8995da1960546df31fdf876665c996083b3 (diff)
downloadsamba-17d5d660b5853e64ea0225ce107ed619b2aeb064.tar.gz
samba-17d5d660b5853e64ea0225ce107ed619b2aeb064.tar.bz2
samba-17d5d660b5853e64ea0225ce107ed619b2aeb064.zip
Fix for race condition found by Herb where we can end up with a NULL dbf.
Jeremy. (This used to be commit 5cbb2106735ad0533198a83d62541cabd7beed20)
-rw-r--r--source3/lib/debug.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index bd8babf827..06092c6a35 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -343,14 +343,6 @@ BOOL reopen_logs( void )
if (stdout_logging)
return True;
- if (DEBUGLEVEL_CLASS[ DBGC_ALL ] <= 0) {
- if (dbf) {
- (void)fclose(dbf);
- dbf = NULL;
- }
- return True;
- }
-
oldumask = umask( 022 );
pstrcpy(fname, debugf );