]> git.sur5r.net Git - openldap/commitdiff
ITS#2962 - EBCDIC db_version string
authorHoward Chu <hyc@openldap.org>
Fri, 13 Feb 2004 00:53:02 +0000 (00:53 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 13 Feb 2004 00:53:02 +0000 (00:53 +0000)
servers/slapd/back-ldbm/ldbm.c

index 663c448b5920b68fcb066f621be5b23933a94f28..222f7cf733b9ba4f9f413cef68cc251761f28073 100644 (file)
@@ -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 )