Wietse Venema via Postfix-announce:
>   * Reducing process churn: Postfix daemons no longer automatically
>     restart after a btree:, dbm:, hash:, lmdb:, or sdbm: table file
>     modification time change, when they opened that table for writing.

This change was broken for systems that use DBM, as pointed out by
Gary R. Schmidt. The patch below addresses that.

        Wietse

diff '--exclude=man' '--exclude=html' '--exclude=README_FILES' 
'--exclude=INSTALL' --no-dereference -r -u 
/var/tmp/postfix-3.11-20250818/src/util/dict_dbm.c ./src/util/dict_dbm.c
--- /var/tmp/postfix-3.11-20250818/src/util/dict_dbm.c  2025-07-17 
11:36:59.000000000 -0400
+++ ./src/util/dict_dbm.c       2025-08-19 10:33:08.150273258 -0400
@@ -472,7 +472,7 @@
        msg_fatal("open database %s: cannot support GDBM", path);
     if (fstat(dict_dbm->dict.stat_fd, &st) < 0)
        msg_fatal("dict_dbm_open: fstat: %m");
-    if (open_mode == O_RDONLY)
+    if (open_flags == O_RDONLY)
        dict_dbm->dict.mtime = st.st_mtime;
     dict_dbm->dict.owner.uid = st.st_uid;
     dict_dbm->dict.owner.status = (st.st_uid != 0);
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to