1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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>
This commit is contained in:
Christof Schmitt 2015-01-09 14:51:00 -07:00
parent 8a46da3280
commit 25bd64ffb2

View File

@ -1036,23 +1036,6 @@ static int Debug1(const char *msg)
goto done;
}
#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);