Skip to content
Snippets Groups Projects
Commit a970038b authored by Howard Chu's avatar Howard Chu
Browse files

ITS#4373, fix prev commit

parent 667d3c1a
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment