public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Thorsten Kukuk <kukuk@suse.de>
To: libc-hacker@sources.redhat.com
Subject: Patch for nss_nis.so
Date: Mon, 29 Mar 2004 20:04:00 -0000	[thread overview]
Message-ID: <20040327081856.GA29460@suse.de> (raw)


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  <kukuk@suse.de>

	* 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 <kukuk@suse.de>, 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

             reply	other threads:[~2004-03-27  8:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-29 20:04 Thorsten Kukuk [this message]
2004-03-29 23:11 ` Ulrich Drepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040327081856.GA29460@suse.de \
    --to=kukuk@suse.de \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).