Deleted Added
full compact
35c35
< static char sccsid[] = "@(#)getgrouplist.c 8.1 (Berkeley) 6/4/93";
---
> static char sccsid[] = "@(#)getgrouplist.c 8.2 (Berkeley) 12/8/94";
71,79c71,73
< while ( (grp = getgrent()) ) {
< for (i = 0; i < ngroups; i++) {
< if (grp->gr_gid == groups[i])
< goto skip;
< }
< if (ngroups >= maxgroups) {
< ret = -1;
< break;
< }
---
> while (grp = getgrent()) {
> if (grp->gr_gid == agroup)
> continue;
81a76,79
> if (ngroups >= maxgroups) {
> ret = -1;
> break;
> }