From 4479b4c417ebce77828f7cd2a587a7855ee8ec7c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 13 Feb 2004 00:53:02 +0000 Subject: [PATCH] ITS#2962 - EBCDIC db_version string --- servers/slapd/back-ldbm/ldbm.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ) -- 2.39.5