From: Adam Conrad Subject: Be more liberal in the types of DBM files we accept. --- dbm/apr_dbm_berkeleydb.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) Index: trunk/dbm/apr_dbm_berkeleydb.c =================================================================== --- trunk.orig/dbm/apr_dbm_berkeleydb.c +++ trunk/dbm/apr_dbm_berkeleydb.c @@ -174,6 +174,21 @@ apr_posix_perms2mode(perm))) != 0) { /* close the DB handler */ (void) (*file.bdb->close)(file.bdb, 0); + if (dberr == EINVAL) { + if ((dberr = db_create(&file.bdb, NULL, 0)) == 0) { + if ((dberr = (*file.bdb->open)(file.bdb, +#if DB_VER == 4 + NULL, +#endif + pathname, NULL, + DB_BTREE, dbmode, + apr_posix_perms2mode(perm))) != 0) { + + /* close the DB handler */ + (void) (*file.bdb->close)(file.bdb, 0); + } + } + } } } file.curs = NULL;