id: avoid race when a group is added between getgrouplist calls
authorJim Meyering <meyering@redhat.com>
Fri, 22 Feb 2008 09:01:36 +0000 (10:01 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 22 Feb 2008 19:47:54 +0000 (20:47 +0100)
commita15329798c52c57cc16fc24265327d8b1c73ab41
tree7ea3f66096ded4274a25d703f9cc29e8b5d9987d
parent49f7ebaac45f4d20a70c83c8302444b64259c6d3
id: avoid race when a group is added between getgrouplist calls

* gl/lib/mgetgroups.c (mgetgroups) [N_GROUPS_INIT]: Rename enum.
Use a larger value.
Update *groups only upon success.
Iterate upon failed getgrouplist.
gl/lib/mgetgroups.c