Fixed posttls-finger to work with unix domains

This commit is contained in:
Jaroslav Škarvada 2018-12-03 16:58:24 +01:00
parent 7bd2c29333
commit 9da5a90625
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/posttls-finger/posttls-finger.c b/src/posttls-finger/posttls-finger.c
index 5f559b4..86a8b01 100644
--- a/src/posttls-finger/posttls-finger.c
+++ b/src/posttls-finger/posttls-finger.c
@@ -1409,7 +1409,7 @@ static int connect_dest(STATE *state)
*/
if (state->smtp == 0) {
if (strncmp(dest, "unix:", 5) == 0) {
- connect_unix(state, dest + 5);
+ state->stream = connect_unix(state, dest + 5);
if (!state->stream)
msg_info("Failed to establish session to %s: %s",
dest, vstring_str(state->why->reason));

View File

@ -48,7 +48,7 @@
Name: postfix Name: postfix
Summary: Postfix Mail Transport Agent Summary: Postfix Mail Transport Agent
Version: 3.3.1 Version: 3.3.1
Release: 6%{?dist} Release: 7%{?dist}
Epoch: 2 Epoch: 2
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://www.postfix.org URL: http://www.postfix.org
@ -90,6 +90,8 @@ Patch1: postfix-3.2.0-config.patch
Patch2: postfix-3.1.0-files.patch Patch2: postfix-3.1.0-files.patch
Patch3: postfix-3.1.0-alternatives.patch Patch3: postfix-3.1.0-alternatives.patch
Patch4: postfix-3.2.0-large-fs.patch Patch4: postfix-3.2.0-large-fs.patch
# Found by coverity static analysis, it will be addressed upstream
Patch5: postfix-3.3.1-posttls-finger-unix-fix.patch
Patch9: pflogsumm-1.1.5-datecalc.patch Patch9: pflogsumm-1.1.5-datecalc.patch
# rhbz#1384871, sent upstream # rhbz#1384871, sent upstream
Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch
@ -216,6 +218,7 @@ maps with Postfix, you need this.
%patch2 -p1 -b .files %patch2 -p1 -b .files
%patch3 -p1 -b .alternatives %patch3 -p1 -b .alternatives
%patch4 -p1 -b .large-fs %patch4 -p1 -b .large-fs
%patch5 -p1 -b .posttls-finger-unix-fix
# Change DEF_SHLIB_DIR according to build host # Change DEF_SHLIB_DIR according to build host
sed -i \ sed -i \
@ -755,6 +758,9 @@ fi
%endif %endif
%changelog %changelog
* Mon Dec 3 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.3.1-7
- Fixed posttls-finger to work with unix domains
* Mon Nov 19 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.3.1-6 * Mon Nov 19 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.3.1-6
- Used _prefix macro for /usr and _includedir macro for /usr/include - Used _prefix macro for /usr and _includedir macro for /usr/include