about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-29 20:04:20 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-29 20:04:20 +0000
commit0b3b45f937d8849f8f3655c4b970cd955ad7a894 (patch)
treed164f8d03ea8f21f75163f32dad60642849b1a10
parent3bd1aa475df61ad8f14bb9af929dcac4a2de81c8 (diff)
downloadglibc-0b3b45f937d8849f8f3655c4b970cd955ad7a894.tar.gz
glibc-0b3b45f937d8849f8f3655c4b970cd955ad7a894.tar.xz
glibc-0b3b45f937d8849f8f3655c4b970cd955ad7a894.zip
Update.
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.
-rw-r--r--ChangeLog5
-rw-r--r--nis/nss_nis/nis-grp.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d249c8fe03..4194877579 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2004-03-28  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
diff --git a/nis/nss_nis/nis-grp.c b/nis/nss_nis/nis-grp.c
index c090a77266..8be7332515 100644
--- a/nis/nss_nis/nis-grp.c
+++ b/nis/nss_nis/nis-grp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1996-1999, 2001-2003, 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 @@ _nss_nis_getgrnam_r (const char *name, struct group *grp,
 
   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;
     }