From 4bdb7ac78002635fbcbe6500666f4a2fdca9eb3b Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 2 Jul 2010 11:42:29 +0000 Subject: [PATCH] coreutils-getgrouplist.patch: fix regression introduced in r1.7 --- coreutils-getgrouplist.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreutils-getgrouplist.patch b/coreutils-getgrouplist.patch index 6dfb424..0c8eb41 100644 --- a/coreutils-getgrouplist.patch +++ b/coreutils-getgrouplist.patch @@ -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