From 4ee812493348557e2ce8b84f1391ee70c6409213 Mon Sep 17 00:00:00 2001 From: djm Date: Sat, 14 Oct 2000 01:37:19 +0000 Subject: [PATCH] - (djm) Add workaround for Linux 2.4's gratuitious errno change. Patch from Martin Johansson --- CREDITS | 3 ++- ChangeLog | 2 ++ channels.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CREDITS b/CREDITS index 90aa89dc..80977880 100644 --- a/CREDITS +++ b/CREDITS @@ -53,6 +53,7 @@ Kiyokazu SUTO - Bugfixes Larry Jones - Bugfixes Lutz Jaenicke - Bugfixes Marc G. Fournier - Solaris patches +Martin Johansson - Linux fixes Mark Miller - Bugfixes Matt Richards - AIX patches Michael Stone - Irix enhancements @@ -81,4 +82,4 @@ Zack Weinberg - GNOME askpass enhancement Apologies to anyone I have missed. -Damien Miller +Damien Miller diff --git a/ChangeLog b/ChangeLog index a316b1e9..86e7cea9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 20001014 - (djm) Don't accept PAM_PROMPT_ECHO_ON messages during initial auth - (djm) Revert SSH2 serverloop hack, will find a better way. + - (djm) Add workaround for Linux 2.4's gratuitious errno change. Patch + from Martin Johansson 20001007 - (stevesk) Print PAM return value in PAM log messages to aid diff --git a/channels.c b/channels.c index c842aa23..96d8dc4b 100644 --- a/channels.c +++ b/channels.c @@ -1759,7 +1759,7 @@ x11_create_display_inet(int screen_number, int x11_display_offset) continue; sock = socket(ai->ai_family, SOCK_STREAM, 0); if (sock < 0) { - if (errno != EINVAL) { + if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { error("socket: %.100s", strerror(errno)); return NULL; } else { -- 2.45.2