rpms/coreutils/devel coreutils-getgrouplist.patch,1.7,1.8

Kamil Dudka kdudka at fedoraproject.org
Fri Jul 2 11:42:30 UTC 2010


Author: kdudka

Update of /cvs/extras/rpms/coreutils/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv30082

Modified Files:
	coreutils-getgrouplist.patch 
Log Message:
coreutils-getgrouplist.patch: fix regression introduced in r1.7


coreutils-getgrouplist.patch:
 lib/getugroups.c |    4 ++++
 lib/mgetgroups.c |   37 ++++++++++++++++++++++++++++++-------
 m4/jm-macros.m4  |    1 +
 3 files changed, 35 insertions(+), 7 deletions(-)

Index: coreutils-getgrouplist.patch
===================================================================
RCS file: /cvs/extras/rpms/coreutils/devel/coreutils-getgrouplist.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- coreutils-getgrouplist.patch	14 May 2010 12:36:48 -0000	1.7
+++ coreutils-getgrouplist.patch	2 Jul 2010 11:42:29 -0000	1.8
@@ -51,7 +51,7 @@ index 76474c2..0a9d221 100644
 -        : getgroups (max_n_groups - (gid != (gid_t) -1),
 -                                g + (gid != (gid_t) -1)));
 +  if (!username)
-+    ng = getgroups (max_n_groups, g);
++    ng = getgroups (max_n_groups - (gid != (gid_t)-1), g + (gid != (gid_t)-1));
 +  else
 +  {
 +#ifdef HAVE_GETGROUPLIST



More information about the scm-commits mailing list