mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#2962 - EBCDIC db_version string
This commit is contained in:
parent
b36e3a1ab0
commit
4479b4c417
1 changed files with 8 additions and 0 deletions
|
|
@ -152,8 +152,16 @@ int ldbm_initialize( const char* home )
|
|||
|
||||
{
|
||||
char *version;
|
||||
#ifdef HAVE_EBCDIC
|
||||
char v2[1024];
|
||||
#endif
|
||||
int major, minor, patch;
|
||||
version = db_version( &major, &minor, &patch );
|
||||
#ifdef HAVE_EBCDIC
|
||||
strcpy( v2, version );
|
||||
__etoa( v2 );
|
||||
version = v2;
|
||||
#endif
|
||||
|
||||
if( major != DB_VERSION_MAJOR ||
|
||||
minor < DB_VERSION_MINOR )
|
||||
|
|
|
|||
Loading…
Reference in a new issue