2006-12-19 00:17:44 +01:00
|
|
|
Always use DB_PRIVATE. Should probably be configured instead.
|
|
|
|
|
2009-08-28 15:54:03 +02:00
|
|
|
Index: lib/backend/db3.c
|
2008-09-12 20:37:28 +02:00
|
|
|
===================================================================
|
2009-08-28 15:54:03 +02:00
|
|
|
--- lib/backend/db3.c.orig
|
|
|
|
+++ lib/backend/db3.c
|
|
|
|
@@ -804,6 +804,9 @@ static int db3open(rpmdb rpmdb, rpmTag r
|
|
|
|
*/
|
|
|
|
if (dbi->dbi_use_dbenv) {
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
+ /* always use fcntl lock */
|
|
|
|
+ dbi->dbi_eflags |= DB_PRIVATE;
|
|
|
|
+
|
|
|
|
if (access(dbhome, W_OK) == -1) {
|
|
|
|
|
|
|
|
/* dbhome is unwritable, don't attempt DB_CREATE on DB->open ... */
|