2006-12-19 00:17:44 +01:00
|
|
|
Always use DB_PRIVATE. Should probably be configured instead.
|
|
|
|
|
2008-09-12 20:37:28 +02:00
|
|
|
Index: rpmdb/db3.c
|
|
|
|
===================================================================
|
|
|
|
--- rpmdb/db3.c.orig
|
|
|
|
+++ rpmdb/db3.c
|
|
|
|
@@ -1050,6 +1050,9 @@ static int db3open(rpmdb rpmdb, rpmTag r
|
2006-12-19 00:17:44 +01:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+ /* 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 ... */
|