summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2015-01-09 14:51:00 -0700
committerChristof Schmitt <cs@samba.org>2015-03-23 21:22:11 +0100
commit25bd64ffb2f214fa1230dbc8f9230fc91dd2b786 (patch)
treeae11360ac3fe50ea9318bce6e68f35275b832687 /lib
parent8a46da32805e477144e0404531edeae4df554d7d (diff)
downloadsamba-25bd64ffb2f214fa1230dbc8f9230fc91dd2b786.tar.gz
debug: Remove codepath to open file in Debug1
This is not used, the log file is already open from the call to reopen_logs_internal. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/util/debug.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c
index 412333b4fbe..1d8bf811de2 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -1037,23 +1037,6 @@ static int Debug1(const char *msg)
}
#ifdef WITH_SYSLOG
- if( !state.settings.syslog_only)
-#endif
- {
- if( state.fd <= 0 ) {
- mode_t oldumask = umask( 022 );
- int fd = open( state.debugf, O_WRONLY|O_APPEND|O_CREAT, 0644 );
- (void)umask( oldumask );
- if(fd == -1) {
- goto done;
- }
- smb_set_close_on_exec(fd);
- state.fd = fd;
- }
- }
-
-
-#ifdef WITH_SYSLOG
if( current_msg_level < state.settings.syslog ) {
int priority = debug_level_to_priority(current_msg_level);