From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22885 invoked by alias); 27 Mar 2004 08:18:58 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 22864 invoked from network); 27 Mar 2004 08:18:57 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 27 Mar 2004 08:18:57 -0000 Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id A0E6F3827A1 for ; Sat, 27 Mar 2004 09:18:56 +0100 (CET) Date: Mon, 29 Mar 2004 20:04:00 -0000 From: Thorsten Kukuk To: libc-hacker@sources.redhat.com Subject: Patch for nss_nis.so Message-ID: <20040327081856.GA29460@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Organization: SuSE Linux AG, Nuernberg, Germany X-SW-Source: 2004-03/txt/msg00138.txt.bz2 Hi, there is one place in the nss nis module, where errno is set if the group does not exist. Since we never never set errno in this case in all other modules (and all other places in nss_nis), I propose the following patch: 2004-03-26 Thorsten Kukuk * nis/nss_nis/nis-grp.c (_nss_nis_getgrnam_r): Don't set errno if group does not exist. --- nis/nss_nis/nis-grp.c 19 Jan 2003 19:06:07 -0000 1.18 +++ nis/nss_nis/nis-grp.c 26 Mar 2004 21:48:41 -0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1996-1999, 2001, 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1996-1999, 2001-2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk , 1996. @@ -168,9 +168,7 @@ if (retval != NSS_STATUS_SUCCESS) { - if (retval == NSS_STATUS_NOTFOUND) - *errnop = EAGAIN; - else if (retval == NSS_STATUS_TRYAGAIN) + if (retval == NSS_STATUS_TRYAGAIN) *errnop = errno; return retval; } -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SuSE Linux AG Maxfeldstr. 5 D-90409 Nuernberg -------------------------------------------------------------------- Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B