- EACCES from actually opening the environment is returned only
through dbenv->open() return code, but annoyingly the EACCESS
from trying to create a missing environment is "leaked" to the
errcall, causing pesky "permission denied" errors for regular users
if the environment doesn't (yet) exist. Enable errcall in time
for dbenv->failchk() though to get all the details if something
goes wrong there.
goto errxit;
dbenv->set_alloc(dbenv, rmalloc, rrealloc, NULL);
- dbenv->set_errcall(dbenv, errlog);
+ dbenv->set_errcall(dbenv, NULL);
dbenv->set_errpfx(dbenv, _errpfx);
/*
if (rc)
goto errxit;
+ dbenv->set_errcall(dbenv, errlog);
+
/* stale lock removal */
rc = dbenv->failchk(dbenv, 0);
rc = dbapi_err(rdb, "dbenv->failchk", rc, _debug);