1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

r1834: prevent infinite recusion in reopen_logs() when expanding the smb.conf variable %I

This commit is contained in:
Gerald Carter
2004-08-16 15:30:17 +00:00
committed by Gerald (Jerry) Carter
parent 980740da78
commit 08037bd442

View File

@ -572,6 +572,7 @@ BOOL reopen_logs( void )
oldumask = umask( 022 );
pstrcpy(fname, debugf );
debugf[0] = '\0';
if (lp_loaded()) {
char *logfname;
@ -726,7 +727,12 @@ void check_log_size( void )
errno = old_errno;
return( 0 );
}
/* prevent recursion by checking if reopen_logs() has temporaily
set the debugf string to "" */
if( debugf[0] == '\0')
return( 0 );
#ifdef WITH_SYSLOG
if( !lp_syslog_only() )
#endif