OpenSSH bug in MacOS X

Josh Larios jdlarios at cac.washington.edu
Fri Jul 6 10:40:04 EST 2001


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