From owner-freebsd-bugs Thu May 10 20:30: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4786D37B423 for ; Thu, 10 May 2001 20:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4B3U3504893; Thu, 10 May 2001 20:30:03 -0700 (PDT) (envelope-from gnats) Date: Thu, 10 May 2001 20:30:03 -0700 (PDT) Message-Id: <200105110330.f4B3U3504893@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Dima Dorfman Subject: Re: bin/27230: Users after NIS lines in /etc/passwd Reply-To: Dima Dorfman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/27230; it has been noted by GNATS. From: Dima Dorfman To: Thomas Quinot Cc: "Jacques A. Vidrine" , FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/27230: Users after NIS lines in /etc/passwd Date: Thu, 10 May 2001 20:27:32 -0700 Thomas Quinot writes: > Le 2001-05-10, Dima Dorfman écrivait : > > > > No, NS_UNAVAIL _should_ short-circuit like this. I'll look for a bug > > > in __getpwcompat that returns NS_UNAVAIL inappropriately. > > In this case, it gets returned here: > > > > if(__ypdomain == NULL) { > > if(_yp_check(&__ypdomain) == 0) > > return NS_UNAVAIL; > > } > > > > line 512, rev. 1.59 of getpwent.c. > > As I understand it, your patch and/or changing the returned value would > resolve the faulty 'no such user' error, but not the 75-second hang > that is experienced when rpcbind is not running. I don't think that's a bug. It's the nature of NIS; it should wait in hopes of the server responding. Perhaps the bug is that it doesn't wait when rpcbind is running but ypbind isn't. > > -- > Thomas Quinot ** Département Informatique & Réseaux ** quinot@inf.enst.fr > ENST // 46 rue Barrault // 75634 PARIS CEDEX 13 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message