On 20/8/25 00:26, Wietse Venema via Postfix-users wrote:
Gary R. Schmidt via Postfix-users:
On 19/8/25 23:44, Wietse Venema via Postfix-users wrote:
[An on-line version of this announcement will be available at
https://www.postfix.org/announcements/postfix-3.10.4.html]

Fixes for Postfix 3.10, 3.9, 3.8, 3.7:

Hmm...

$ diff postfix-3.10.{3,4}/src/util/dict_dbm.c
475c475,476
<     dict_dbm->dict.mtime = st.st_mtime;
---
  >     if (open_mode == O_RDONLY)
  >       dict_dbm->dict.mtime = st.st_mtime;

I /think/ it should be "open_flags",

Hmm. This code is "#ifdef HAS_DBM" and I use that only on ancient
systems.

Ancient, hmm, it's Solaris 11.4 but I've been using the same-ish build command since Adam was a boy (i.e. Solaris 10):
$ make makefiles shared=yes \
        CCARGS="-m32 \
                -DHAS_LMDB -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
                -DHAS_DB -DEAI \
                -I/usr/include/sasl \
                -I/opt/local/include" \
        AUXLIBS="-m32 \
                -lsasl2 \
                -ldb \
                -lssl -lcrypto" \
        AUXLIBS_LMDB="-R/usr/local/lib -L/usr/local/lib -llmdb"

but I'm not sure it should not be ((open_flags & O_RDONLY) != 0).

That would not be useful. Historically, O_RDONLY is zero, and the
compiler would optimize away the condition and the statement that
follows it.

Ah, yes, of course.  So it should be "open_flags"??

        Cheers,
                Gary    B-)
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to