coreutils-getgrouplist.patch: fix regression introduced in r1.7

This commit is contained in:
Kamil Dudka 2010-07-02 11:42:29 +00:00
parent 182b0889a6
commit 4bdb7ac780

View File

@ -51,7 +51,7 @@ index 76474c2..0a9d221 100644
- : getgroups (max_n_groups - (gid != (gid_t) -1), - : getgroups (max_n_groups - (gid != (gid_t) -1),
- g + (gid != (gid_t) -1))); - g + (gid != (gid_t) -1)));
+ if (!username) + if (!username)
+ ng = getgroups (max_n_groups, g); + ng = getgroups (max_n_groups - (gid != (gid_t)-1), g + (gid != (gid_t)-1));
+ else + else
+ { + {
+#ifdef HAVE_GETGROUPLIST +#ifdef HAVE_GETGROUPLIST