From c7eccad28820be8c6eee5e6be15202ae48daf25f Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Nov 18 2013 13:08:48 +0000 Subject: don't show Success for EAI_SYSTEM (#985964) --- diff --git a/openssh-6.1p1-ssh_gai_strerror.patch b/openssh-6.1p1-ssh_gai_strerror.patch new file mode 100644 index 0000000..0e433fa --- /dev/null +++ b/openssh-6.1p1-ssh_gai_strerror.patch @@ -0,0 +1,23 @@ +diff -U0 openssh-6.2p2/ChangeLog.ssh_gai_strerror openssh-6.2p2/ChangeLog +--- openssh-6.2p2/ChangeLog.ssh_gai_strerror 2013-07-23 12:03:41.467902339 +0200 ++++ openssh-6.2p2/ChangeLog 2013-07-23 12:06:03.414281151 +0200 +@@ -0,0 +1,7 @@ ++20130718 ++ - djm@cvs.openbsd.org 2013/07/12 00:43:50 ++ [misc.c] ++ in ssh_gai_strerror() don't fallback to strerror for EAI_SYSTEM when ++ errno == 0. Avoids confusing error message in some broken resolver ++ cases. bz#2122 patch from plautrba AT redhat.com; ok dtucker ++ +diff -up openssh-6.2p2/misc.c.ssh_gai_strerror openssh-6.2p2/misc.c +--- openssh-6.2p2/misc.c.ssh_gai_strerror 2013-07-23 12:03:41.321902978 +0200 ++++ openssh-6.2p2/misc.c 2013-07-23 12:03:41.467902339 +0200 +@@ -127,7 +127,7 @@ unset_nonblock(int fd) + const char * + ssh_gai_strerror(int gaierr) + { +- if (gaierr == EAI_SYSTEM) ++ if (gaierr == EAI_SYSTEM && errno != 0) + return strerror(errno); + return gai_strerror(gaierr); + } diff --git a/openssh.spec b/openssh.spec index d56fcc5..0a7af5f 100644 --- a/openssh.spec +++ b/openssh.spec @@ -214,6 +214,8 @@ Patch903: openssh-6.1p1-required-authentications.patch Patch904: openssh-6.1p1-change-max-startups.patch # make sftp's libedit interface marginally multibyte aware (#841771) Patch908: openssh-6.1p1-sftp-multibyte.patch +# don't show Success for EAI_SYSTEM (#985964) +Patch909: openssh-6.1p1-ssh_gai_strerror.patch License: BSD @@ -457,6 +459,7 @@ popd %patch903 -p1 -b .required-authentication %patch904 -p1 -b .max-startups %patch908 -p1 -b .sftp-multibyte +%patch909 -p1 -b .ssh_gai_strerror %if 0 # Nothing here yet