|
|
@@ -1,4 +1,3 @@
|
|
|
-diff -Naur postfix-1.1.11.orig/src/util/dict_db.c postfix-1.1.11/src/util/dict_db.c
|
|
|
--- 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 @@
|
|
|
@@ -15,3 +14,21 @@ diff -Naur postfix-1.1.11.orig/src/util/dict_db.c postfix-1.1.11/src/util/dict_d
|
|
|
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;
|
|
|
+
|
|
|
+ /*
|