Skip to content
Snippets Groups Projects
Commit 12b09c58 authored by Howard Chu's avatar Howard Chu
Browse files

Another EBCDIC syslog fix

parent f8d54b4e
No related branches found
No related tags found
No related merge requests found
......@@ -382,11 +382,24 @@ int main( int argc, char **argv )
}
}
{
char *logName;
#ifdef HAVE_EBCDIC
logName = ch_strdup( serverName );
__atoe( logName );
#else
logName = serverName;
#endif
#ifdef LOG_LOCAL4
openlog( serverName, OPENLOG_OPTIONS, syslogUser );
openlog( logName, OPENLOG_OPTIONS, syslogUser );
#elif LOG_DEBUG
openlog( serverName, OPENLOG_OPTIONS );
openlog( logName, OPENLOG_OPTIONS );
#endif
#ifdef HAVE_EBCDIC
free( logName );
#endif
}
#ifdef NEW_LOGGING
LDAP_LOG( SLAPD, INFO, "%s", Versionstr, 0, 0 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment