From: Howard Chu Date: Fri, 13 Feb 2004 00:53:02 +0000 (+0000) Subject: ITS#2962 - EBCDIC db_version string X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~429 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4479b4c417ebce77828f7cd2a587a7855ee8ec7c;p=openldap ITS#2962 - EBCDIC db_version string --- diff --git a/servers/slapd/back-ldbm/ldbm.c b/servers/slapd/back-ldbm/ldbm.c index 663c448b59..222f7cf733 100644 --- a/servers/slapd/back-ldbm/ldbm.c +++ b/servers/slapd/back-ldbm/ldbm.c @@ -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 )