You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
--- postfix-1.1.11.orig/src/util/dict_db.c Mon Oct 14 18:54:26 2002 |
|
+++ postfix-1.1.11/src/util/dict_db.c Mon Oct 14 19:52:16 2002 |
|
@@ -520,8 +520,13 @@ |
|
msg_fatal("set DB cache size %d: %m", DICT_DB_CACHE_SIZE); |
|
if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0) |
|
msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM); |
|
+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) |
|
+ if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0) |
|
+ msg_fatal("open database %s: %m", db_path); |
|
+#else |
|
if ((errno = db->open(db, db_path, 0, type, db_flags, 0644)) != 0) |
|
msg_fatal("open database %s: %m", db_path); |
|
+#endif |
|
if ((errno = db->fd(db, &dbfd)) != 0) |
|
msg_fatal("get database file descriptor: %m"); |
|
#endif |
|
--- postfix-1.1.11.orig/src/global/mkmap_db.c.orig Mon Nov 20 19:05:25 2000 |
|
+++ postfix-1.1.11/src/global/mkmap_db.c Mon Nov 11 17:09:36 2002 |
|
@@ -66,7 +66,15 @@ |
|
/* |
|
* Fill in the generic members. |
|
*/ |
|
+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) |
|
+ /* OpenPKG/RSE hack: lock source instead of target file because more |
|
+ than one edge in Postfix really want the locked file to be created |
|
+ and implicitly insist that the lock is not a dedicated file (for |
|
+ instance it is not removed after closing, etc) */ |
|
+ mkmap->lock_file = concatenate(path, (char *) 0); |
|
+#else |
|
mkmap->lock_file = concatenate(path, ".db", (char *) 0); |
|
+#endif |
|
mkmap->open = db_open; |
|
|
|
/*
|
|
|