coreutils-getgrouplist.patch: fix regression introduced in r1.7
This commit is contained in:
parent
182b0889a6
commit
4bdb7ac780
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user