FWD: OpenSSH bug in MacOS X

Davis, Ricardo C. RCDavis at intermedia.com
Tue Jul 17 00:04:07 EST 2001



-----Original Message-----
From: Josh Larios [mailto:jdlarios at cac.washington.edu]
Sent: Thursday, July 05, 2001 8:40 PM
To: openssh at openssh.com
Subject: OpenSSH bug in MacOS X


In MacOS X 10.0.4, and probably other versions, getaddrinfo() is broken in 
such a way that when you try to connect to certain hosts, openssh fails. 
getaddrinfo is first failing the lookup, and then failing to return with an 
error code when it does fail. I've found that if you define 
BROKEN_GETADDRINFO for OS X, it compiles and runs just fine. This patch 
against configure works for me:

--- configure.old       Sat Jun 16 21:09:50 2001
+++ configure   Thu Jul  5 17:04:28 2001
@@ -1498,6 +1498,11 @@

 # Check for some target-specific stuff
 case "$host" in
+*-*-darwin*)
+       cat >> confdefs.h <<\EOF
+#define BROKEN_GETADDRINFO 1
+EOF
+    ;;
 *-*-aix*)
        AFS_LIBS="-lld"
        CPPFLAGS="$CPPFL

I hope you're the right folks to be reporting this to.

Yours,

--
Josh Larios                    Computing & Communications Client Services
University of Washington       Box 352830  Seattle, WA 98195-2830
jdlarios at cac.washington.edu



More information about the openssh-unix-dev mailing list