forked from rpms/openssh
don't show Success for EAI_SYSTEM (#985964)
This commit is contained in:
parent
2ee6810919
commit
17df27c668
23
openssh-6.2p2-ssh_gai_strerror.patch
Normal file
23
openssh-6.2p2-ssh_gai_strerror.patch
Normal file
@ -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);
|
||||
}
|
@ -184,6 +184,8 @@ Patch905: openssh-6.2p1-modpipe-cflags.patch
|
||||
Patch907: openssh-6.2p1-aarch64.patch
|
||||
# make sftp's libedit interface marginally multibyte aware (#841771)
|
||||
Patch908: openssh-6.2p2-sftp-multibyte.patch
|
||||
# don't show Success for EAI_SYSTEM (#985964)
|
||||
Patch909: openssh-6.2p2-ssh_gai_strerror.patch
|
||||
|
||||
|
||||
License: BSD
|
||||
@ -405,6 +407,7 @@ popd
|
||||
%patch905 -p1 -b .modpipe-cflags
|
||||
%patch907 -p1 -b .aarch64
|
||||
%patch908 -p1 -b .sftp-multibyte
|
||||
%patch909 -p1 -b .ssh_gai_strerror
|
||||
|
||||
%if 0
|
||||
# Nothing here yet
|
||||
|
Loading…
Reference in New Issue
Block a user