This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.13-98-g125ee68
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 29 Apr 2011 15:17:27 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.13-98-g125ee68
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 125ee683b3bfcd3868ffc29d5ee303433383312d (commit)
from b722481ac27a296c5e4c4ef5ebb85f48a9efac95 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=125ee683b3bfcd3868ffc29d5ee303433383312d
commit 125ee683b3bfcd3868ffc29d5ee303433383312d
Author: Ulrich Drepper <drepper@gmail.com>
Date: Fri Apr 29 11:16:30 2011 -0400
Add finer grained control for initgroups lookups to NSS.
diff --git a/ChangeLog b/ChangeLog
index 2b02e1a..92a34c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-29 Ulrich Drepper <drepper@gmail.com>
+
+ * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
+ to groups setting in database lookup.
+ * nss/nsswitch.conf: Add initgroups entry.
+
2011-04-22 Ulrich Drepper <drepper@gmail.com>
[BZ #12685]
diff --git a/grp/initgroups.c b/grp/initgroups.c
index 180e653..25acf2a 100644
--- a/grp/initgroups.c
+++ b/grp/initgroups.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1989,91,93,1996-2006,2008,2010 Free Software Foundation, Inc.
+/* Copyright (C) 1989,1991,1993,1996-2006,2008,2010,2011
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -85,7 +86,7 @@ internal_getgrouplist (const char *user, gid_t group, long int *size,
nip = __nss_group_database;
}
else
- no_more = __nss_database_lookup ("group", NULL,
+ no_more = __nss_database_lookup ("initgroups", "group",
"compat [NOTFOUND=return] files", &nip);
while (! no_more)
diff --git a/nss/nsswitch.conf b/nss/nsswitch.conf
index 4d2a763..73736a6 100644
--- a/nss/nsswitch.conf
+++ b/nss/nsswitch.conf
@@ -5,6 +5,7 @@
passwd: db files
group: db files
+initgroups: db files
shadow: db files
gshadow: files
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
grp/initgroups.c | 5 +++--
nss/nsswitch.conf | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources