]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.3.3 v3.3.3
authorWietse Venema <wietse@porcupine.org>
Tue, 26 Feb 2019 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Wed, 27 Feb 2019 03:02:33 +0000 (22:02 -0500)
postfix/HISTORY
postfix/src/global/mail_version.h
postfix/src/master/master_spawn.c
postfix/src/posttls-finger/posttls-finger.c
postfix/src/util/dict_utf8.c

index b84fbcab7f4e5ea28a01f9c352cd4087038dd89c..fa93ae1da560ab17e9f1e63192d516b1b97ea961 100644 (file)
@@ -23409,3 +23409,25 @@ Apologies for any names omitted.
        tls/tls_client.c, tls/tls_misc.c, tls/tls_proxy.h,
        tls/tls_proxy_context_print.c, tls/tls_proxy_context_scan.c,
        tls/tls_server.c.
+
+20181202
+
+       Bugfix (introduced: postfix-2.11): with posttls-finger,
+       connections to unix-domain servers always resulted in "Failed
+       to establish session" even after a connection was established.
+       Jaroslav Skarva.  File: posttls-finger/posttls-finger.c.
+
+20181227 (a forgotten bugfix from 20180707)
+
+       Bugfix (introduced: Postfix 3.0): with smtputf8_enable=yes,
+       table lookups could casefold the search string when searching
+       a lookup table that does not use fixed-string keys (regexp,
+       pcre, tcp, etc.). Historically, Postfix would not case-fold
+       the search string with such tables. File: util/dict_utf8.c.
+
+20190217
+
+       Cleanup: when the master daemon runs with PID=1 (init mode),
+       reap orhpan processes from non-Postfix code running in the
+       same container, instead of terminating with a panic. File:
+       master/master_spawn.c.
index b6fef28148282fcf2aec83b74f30a41559616a54..fda3d8757aca8c366c40a7b9746cd7f068e6972a 100644 (file)
@@ -20,8 +20,8 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20181124"
-#define MAIL_VERSION_NUMBER    "3.3.2"
+#define MAIL_RELEASE_DATE      "20190226"
+#define MAIL_VERSION_NUMBER    "3.3.3"
 
 #ifdef SNAPSHOT
 #define MAIL_VERSION_DATE      "-" MAIL_RELEASE_DATE
index 06bfa6715c743d280b17bfaf325b28259036031d..c3b70f2b430671f9ee7f7d60a034cf0f0cf2ba90 100644 (file)
@@ -301,8 +301,11 @@ void    master_reap_child(void)
        if (msg_verbose)
            msg_info("master_reap_child: pid %d", pid);
        if ((proc = (MASTER_PROC *) binhash_find(master_child_table,
-                                         (void *) &pid, sizeof(pid))) == 0)
+                                       (void *) &pid, sizeof(pid))) == 0) {
+           if (init_mode)
+               continue;                       /* non-Postfix process */
            msg_panic("master_reap: unknown pid: %d", pid);
+       }
        serv = proc->serv;
 
 #define MASTER_KILL_SIGNAL     SIGTERM
index 5f559b4fd06d8bdc6510077b5b16864315d1e723..86a8b013e3264770938677084ca518e59320c772 100644 (file)
@@ -1409,7 +1409,7 @@ static int connect_dest(STATE *state)
      */
     if (state->smtp == 0) {
        if (strncmp(dest, "unix:", 5) == 0) {
-           connect_unix(state, dest + 5);
+           state->stream = connect_unix(state, dest + 5);
            if (!state->stream)
                msg_info("Failed to establish session to %s: %s",
                         dest, vstring_str(state->why->reason));
index 1a31f12a210647e7368ed0833f3d5eae6ad1623a..c0e37a05a965eaea1ebac4097b4f36004102c460 100644 (file)
@@ -104,8 +104,9 @@ static char *dict_utf8_check_fold(DICT *dict, const char *string,
     /*
      * Casefold UTF-8.
      */
-    if (fold_flag != 0 && (fold_flag & (dict->flags & DICT_FLAG_FIXED) ?
-                          DICT_FLAG_FOLD_FIX : DICT_FLAG_FOLD_MUL)) {
+    if (fold_flag != 0
+       && (fold_flag & ((dict->flags & DICT_FLAG_FIXED) ?
+                        DICT_FLAG_FOLD_FIX : DICT_FLAG_FOLD_MUL))) {
        if (dict->fold_buf == 0)
            dict->fold_buf = vstring_alloc(10);
        return (casefold(dict->fold_buf, string));