sed -i "/SYSTEM_ALIASES_FILE/ s'SYSTEM_ALIASES_FILE'/etc/aliases'" \
src/configure.default
diff --git a/mail/exim/cve-2019-15846.patch b/mail/exim/cve-2019-15846.patch
new file mode 100644
index 0000000..5c834b4
--- /dev/null
+++ b/mail/exim/cve-2019-15846.patch
@@ -0,0 +1,32 @@
+$OpenBSD$
+Index: src/string.c
+--- src/string.c.orig
++++ src/string.c
+@@ -223,6 +223,8 @@ interpreted in strings.
+ Arguments:
+ pp points a pointer to the initiating "\" in the string;
+ the pointer gets updated to point to the final character
++ If the backslash is the last character in the string, it
++ is not interpreted.
+ Returns: the value of the character escape
+ */
+
+@@ -235,6 +237,7 @@ const uschar *hex_digits= CUS"0123456789abcdef";
+ int ch;
+ const uschar *p = *pp;
+ ch = *(++p);
++if (ch == '\0') return **pp;
+ if (isdigit(ch) && ch != '8' && ch != '9')
+ {
+ ch -= '0';
+@@ -1158,8 +1161,8 @@ memcpy(g->s + p, s, count);
+ g->ptr = p + count;
+ return g;
+ }
+-
+-
++
++
+ gstring *
+ string_cat(gstring *string, const uschar *s)
+ {
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a1695b4ab01ef635c560971c8bd478f1f1cc87b8),
Vlad Glagolev, 09/06/2019