aboutsummaryrefslogtreecommitdiffstats
path: root/main/postfix
diff options
context:
space:
mode:
authorHugo Landau <hlandau@devever.net>2013-04-23 13:22:31 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2013-04-23 13:22:31 -0500
commit7e90f9dbfb45aca7cdf051074c330ed624f0789a (patch)
tree07599c174bd1805be19ed55f9453c7691186a678 /main/postfix
parent675330bdcc0c11d42c30829707895a09addfc615 (diff)
downloadaports-7e90f9dbfb45aca7cdf051074c330ed624f0789a.tar.bz2
aports-7e90f9dbfb45aca7cdf051074c330ed624f0789a.tar.xz
Fixed postfix bug causing postconf -m to segfault
Running postconf -m resulted in a segfault and no output. The bug originated in dynamic-maps3.patch. postconf_other.c was modified by this patch such that it called concatenate(), but the file was not modified to include <stringops.h>, resulting in the function being undeclared. This resulted in gcc incorrectly assuming a default prototype for it with return type int instead of char*, causing pointer truncation on 64-bit systems, causing a segfault when the truncated pointer is passed to another function. The fix is to #include <stringops.h> in postconf_other.c. The patch has been updated. I don't have abuild 2.14 on this machine so I'll leave updating the SHA256 checksums to whoever commits it.
Diffstat (limited to 'main/postfix')
-rw-r--r--main/postfix/dynamic-maps3.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/postfix/dynamic-maps3.patch b/main/postfix/dynamic-maps3.patch
index 0e5a3c95db..81848ab744 100644
--- a/main/postfix/dynamic-maps3.patch
+++ b/main/postfix/dynamic-maps3.patch
@@ -311,7 +311,7 @@ index 04f9404..1752450 100644
+/* Global library. */
+
+#include <mail_params.h>
-+
++#include <stringops.h>
/* Application-specific. */
#include <postconf.h>