diff --git a/postfix-3.6.2-glibc-234-build-fix.patch b/postfix-3.6.2-glibc-234-build-fix.patch index c46b857..b678b78 100644 --- a/postfix-3.6.2-glibc-234-build-fix.patch +++ b/postfix-3.6.2-glibc-234-build-fix.patch @@ -2,14 +2,6 @@ diff --git a/src/util/sys_defs.h b/src/util/sys_defs.h index 99bec9b..95c78ec 100644 --- a/src/util/sys_defs.h +++ b/src/util/sys_defs.h -@@ -1,6 +1,7 @@ - #ifndef _SYS_DEFS_H_INCLUDED_ - #define _SYS_DEFS_H_INCLUDED_ - -+ - /*++ - /* NAME - /* sys_defs 3h @@ -802,6 +803,9 @@ extern int initgroups(const char *, int); #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6" #endif diff --git a/postfix-3.6.2-whitespace-name-fix.patch b/postfix-3.6.2-whitespace-name-fix.patch new file mode 100644 index 0000000..c45035e --- /dev/null +++ b/postfix-3.6.2-whitespace-name-fix.patch @@ -0,0 +1,13 @@ +diff --git a/src/cleanup/cleanup_message.c b/src/cleanup/cleanup_message.c +index 391c711..be5ce42 100644 +--- a/src/cleanup/cleanup_message.c ++++ b/src/cleanup/cleanup_message.c +@@ -773,6 +773,8 @@ static void cleanup_header_done_callback(void *context) + /* Normalize whitespace. */ + token = tok822_scan_limit(state->fullname, &dummy_token, + var_token_limit); ++ if (!token) ++ token = tok822_alloc(TOK822_QSTRING, state->fullname); + } else { + token = tok822_alloc(TOK822_QSTRING, state->fullname); + } diff --git a/postfix.spec b/postfix.spec index 16f6882..8a0b730 100644 --- a/postfix.spec +++ b/postfix.spec @@ -49,7 +49,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 3.6.2 -Release: 4%{?dist} +Release: 5%{?dist} Epoch: 2 URL: http://www.postfix.org License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+) @@ -96,6 +96,8 @@ Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch Patch11: postfix-3.4.4-chroot-example-fix.patch # upstream patch Patch12: postfix-3.6.2-glibc-234-build-fix.patch +# sent upstream +Patch13: postfix-3.6.2-whitespace-name-fix.patch # Optional patches - set the appropriate environment variables to include # them when building the package/spec file @@ -247,6 +249,7 @@ popd %endif %patch11 -p1 -b .chroot-example-fix %patch12 -p1 -b .glibc-234-build-fix +%patch13 -p1 -b .whitespace-name-fix for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do iconv -f iso8859-1 -t utf8 -o ${f}{_,} && @@ -796,6 +799,10 @@ fi %endif %changelog +* Thu Aug 5 2021 Jaroslav Škarvada - 2:3.6.2-5 +- Fixed cleanup crash when processing messages with whitespace only fullname +- Fixed whitespaces in the glibc-234-build-fix patch + * Thu Aug 5 2021 Jaroslav Škarvada - 2:3.6.2-4 - Updated patch fixing FTBFS with the glibc-2.34