mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Another EBCDIC syslog fix
This commit is contained in:
parent
f8d54b4e87
commit
12b09c58e2
1 changed files with 17 additions and 4 deletions
|
|
@ -382,12 +382,25 @@ int main( int argc, char **argv )
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef LOG_LOCAL4
|
||||
openlog( serverName, OPENLOG_OPTIONS, syslogUser );
|
||||
#elif LOG_DEBUG
|
||||
openlog( serverName, OPENLOG_OPTIONS );
|
||||
{
|
||||
char *logName;
|
||||
#ifdef HAVE_EBCDIC
|
||||
logName = ch_strdup( serverName );
|
||||
__atoe( logName );
|
||||
#else
|
||||
logName = serverName;
|
||||
#endif
|
||||
|
||||
#ifdef LOG_LOCAL4
|
||||
openlog( logName, OPENLOG_OPTIONS, syslogUser );
|
||||
#elif LOG_DEBUG
|
||||
openlog( logName, OPENLOG_OPTIONS );
|
||||
#endif
|
||||
#ifdef HAVE_EBCDIC
|
||||
free( logName );
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( SLAPD, INFO, "%s", Versionstr, 0, 0 );
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue