From owner-cvs-usrsbin Mon Jul 28 07:15:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA08540 for cvs-usrsbin-outgoing; Mon, 28 Jul 1997 07:15:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA08489; Mon, 28 Jul 1997 07:14:43 -0700 (PDT) From: Bill Paul Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA20034; Mon, 28 Jul 1997 07:13:58 -0700 (PDT) Date: Mon, 28 Jul 1997 07:13:58 -0700 (PDT) Message-Id: <199707281413.HAA20034@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ypserv yp_dnslookup.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 1997/07/28 07:13:58 PDT Modified files: usr.sbin/ypserv yp_dnslookup.c Log: Fix for PR #4147: apparently BIND now returns a status of NO_RECOVERY at the end of gethostanswer()/getanswer()/whatever where it used to return TRY_AGAIN. This breaks the domain list traversal in ypserv's async DNS lookup module: it would only retry using the domain(s) from the 'domain' or 'search' lines in /etc/resolv.conf if __dns_getanswer() returned TRY_AGAIN. Changed the test so that either TRY_AGAIN or NO_RECOVERY will work. This seemed to me the best solution in the event somebody tries to compile this code on an older system with a different version of BIND. (You shouldn't do that of course, but then there's a lot of things in the world that you shouldn't do and people do them anyway.) Revision Changes Path 1.12 +4 -3 src/usr.sbin/ypserv/yp_dnslookup.c