From owner-cvs-src@FreeBSD.ORG Thu Apr 1 11:12:46 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 385EF16A4CE; Thu, 1 Apr 2004 11:12:46 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32AB043D39; Thu, 1 Apr 2004 11:12:46 -0800 (PST) (envelope-from nectar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i31JCjGe018799; Thu, 1 Apr 2004 11:12:45 -0800 (PST) (envelope-from nectar@repoman.freebsd.org) Received: (from nectar@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i31JCjwh018798; Thu, 1 Apr 2004 11:12:45 -0800 (PST) (envelope-from nectar) Message-Id: <200404011912.i31JCjwh018798@repoman.freebsd.org> From: Jacques Vidrine Date: Thu, 1 Apr 2004 11:12:45 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/net nsdispatch.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2004 19:12:46 -0000 nectar 2004/04/01 11:12:45 PST FreeBSD src repository Modified files: lib/libc/net nsdispatch.c Log: The previous commit changed the behavior of nsdispatch() in the case where an /etc/nsswitch.conf file was present, but could not be opened (e.g. due to permissions). Previously, the open failure condition was suppressed, and the built-in defaults were used. In revision 1.11, however, propagated the open failure causing all nsdispatch() invocations to return NS_UNAVAIL, and thus many APIs including getpwnam and gethostbyname unconditionally failed. This commit restores the previous behavior. Pointy hat: nectar (+1 for obstinance; ache had to use clue bat) Reported by: ache Revision Changes Path 1.12 +1 -3 src/lib/libc/net/nsdispatch.c