From 62871b06029b9864be6594e744a237759a981f40 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jan 19 2022 21:23:59 +0000 Subject: import postfix-3.5.8-3.el8 --- diff --git a/SOURCES/pflogsumm-1.1.5-syslog-name-underscore-fix.patch b/SOURCES/pflogsumm-1.1.5-syslog-name-underscore-fix.patch new file mode 100644 index 0000000..9279bcc --- /dev/null +++ b/SOURCES/pflogsumm-1.1.5-syslog-name-underscore-fix.patch @@ -0,0 +1,18 @@ +diff --git a/pflogsumm-1.1.5/pflogsumm.pl b/pflogsumm-1.1.5/pflogsumm.pl +index eb527d0..7e26206 100755 +--- a/pflogsumm-1.1.5/pflogsumm.pl ++++ b/pflogsumm-1.1.5/pflogsumm.pl +@@ -503,7 +503,12 @@ $usageMsg = + # Accept either "_"s or "-"s in --switches + foreach (@ARGV) { + last if($_ eq "--"); +- tr/_/-/ if(/^--\w/); ++ if (/^--\w/) ++ { ++ my @argspl = split("=", $_, 2); ++ $argspl[0] =~ tr/_/-/; ++ $_ = join("=", @argspl); ++ } + } + + # Some pre-inits for convenience diff --git a/SPECS/postfix.spec b/SPECS/postfix.spec index 36af153..912c483 100644 --- a/SPECS/postfix.spec +++ b/SPECS/postfix.spec @@ -49,7 +49,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 3.5.8 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 2 Group: System Environment/Daemons URL: http://www.postfix.org @@ -98,6 +98,8 @@ Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch Patch11: postfix-3.4.4-chroot-example-fix.patch Patch12: postfix-3.5.8-back-compat-3.3.1.patch Patch13: postfix-3.5.8-whitespace-name-fix.patch +# rhbz#1931403, sent upstream +Patch14: pflogsumm-1.1.5-syslog-name-underscore-fix.patch # Optional patches - set the appropriate environment variables to include # them when building the package/spec file @@ -238,6 +240,7 @@ popd %patch12 -p1 -b .back-compat-3.3.1 # rhbz#1977732, sent upstream %patch13 -p1 -b .whitespace-name-fix +%patch14 -p1 -b .pflogsumm-1.1.5-syslog-name-underscore-fix for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do iconv -f iso8859-1 -t utf8 -o ${f}{_,} && @@ -751,6 +754,10 @@ exit 0 %endif %changelog +* Mon Jan 17 2022 Jaroslav Škarvada - 2:3.5.8-3 +- Fixed pflogsumm to allow underscores in the syslog_name + Resolves: rhbz#1931403 + * Thu Aug 5 2021 Jaroslav Škarvada - 2:3.5.8-2 - Fixed cleanup crash when processing messages with whitespace only fullname Resolves: rhbz#1977732