rename __getgrent so that it doesn't conflict with some libc's

This commit is contained in:
Russ Dill
2003-12-18 22:40:58 +00:00
parent 4e864a36b6
commit f796700cf0
7 changed files with 8 additions and 8 deletions

View File

@@ -89,9 +89,9 @@ int initgroups(__const char *user, gid_t gid)
group_list[num_groups] = gid;
#ifndef GR_DYNAMIC_GROUP_LIST
while (num_groups < GR_MAX_GROUPS &&
(group = __getgrent(grp_fd)) != NULL)
(group = bb_getgrent(grp_fd)) != NULL)
#else
while ((group = __getgrent(grp_fd)) != NULL)
while ((group = bb_getgrent(grp_fd)) != NULL)
#endif
{
if (group->gr_gid != gid)