diff --git a/01_adjust-cafile-path.patch b/01_adjust-cafile-path.patch new file mode 100644 index 0000000..ff93749 --- /dev/null +++ b/01_adjust-cafile-path.patch @@ -0,0 +1,13 @@ +--- a/src/imapfilter.c 2019-11-14 17:45:17.000000000 +0100 ++++ b/src/imapfilter.c 2019-11-18 17:40:17.426255653 +0100 +@@ -70,8 +70,8 @@ + opts.truststore = NULL; + if (exists_dir("/etc/ssl/certs")) + capath = "/etc/ssl/certs"; +- if (exists_file("/etc/ssl/cert.pem")) +- cafile = "/etc/ssl/cert.pem"; ++ if (exists_file("/etc/ssl/certs/ca-bundle.crt")) ++ cafile = "/etc/ssl/certs/ca-bundle.crt"; + + env.home = NULL; + env.pathmax = -1; diff --git a/imapfilter.spec b/imapfilter.spec index dd0d472..1ac72ed 100644 --- a/imapfilter.spec +++ b/imapfilter.spec @@ -1,12 +1,13 @@ Name: imapfilter -Version: 2.6.12 -Release: 2%{?dist} +Version: 2.6.15 +Release: 1%{?dist} Summary: A flexible client side mail filtering utility for IMAP servers License: MIT URL: https://github.com/lefcha/imapfilter/ Source0: https://github.com/lefcha/imapfilter/archive/v%{version}.tar.gz Patch0: imapfilter-makefile-fix.patch +Patch1: 01_adjust-cafile-path.patch BuildRequires: gcc BuildRequires: openssl-devel lua-devel pcre-devel @@ -42,6 +43,9 @@ make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT %changelog +* Thu Nov 14 2019 Andrea Veri - 2.6.15-1 +- New upstream release. (Fixes CVE-2016-10937) + * Thu Jul 25 2019 Fedora Release Engineering - 2.6.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild