]> git.sur5r.net Git - openldap/commitdiff
ITS#4373, fix prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 25 Jan 2006 19:06:16 +0000 (19:06 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 25 Jan 2006 19:06:16 +0000 (19:06 +0000)
servers/slapd/back-bdb/init.c

index 4c41aa1d56d9c1f6b6bccd36b13fc42cde7c36c9..da7b438f6efafe87eaef8fe986e608230232a147 100644 (file)
@@ -219,6 +219,14 @@ bdb_db_open( BackendDB *be )
                goto fail;
        }
 
+#ifdef HAVE_EBCDIC
+       strcpy( path, bdb->bi_dbenv_home );
+       __atoe( path );
+       dbhome = path;
+#else
+       dbhome = bdb->bi_dbenv_home;
+#endif
+
        /* If existing environment is clean but doesn't support
         * currently requested modes, remove it.
         */
@@ -261,14 +269,6 @@ bdb_db_open( BackendDB *be )
 
 #define        BDB_TXN_FLAGS   (DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN)
 
-#ifdef HAVE_EBCDIC
-       strcpy( path, bdb->bi_dbenv_home );
-       __atoe( path );
-       dbhome = path;
-#else
-       dbhome = bdb->bi_dbenv_home;
-#endif
-
        Debug( LDAP_DEBUG_TRACE,
                "bdb_db_open: dbenv_open(%s)\n",
                bdb->bi_dbenv_home, 0, 0);