aboutsummaryrefslogtreecommitdiff
path: root/libpwdgrp/initgroups.c
diff options
context:
space:
mode:
authorRuss Dill <Russ.Dill@asu.edu>2003-12-18 22:40:58 +0000
committerRuss Dill <Russ.Dill@asu.edu>2003-12-18 22:40:58 +0000
commitf796700cf010d7ff2615c59bc364bbbef14153a4 (patch)
tree59da8113d1decbb3ae5731d06487e56c426afb0f /libpwdgrp/initgroups.c
parent4e864a36b611f56c6b347be1dace4e5e805a3eb8 (diff)
downloadbusybox-w32-f796700cf010d7ff2615c59bc364bbbef14153a4.tar.gz
busybox-w32-f796700cf010d7ff2615c59bc364bbbef14153a4.tar.bz2
busybox-w32-f796700cf010d7ff2615c59bc364bbbef14153a4.zip
rename __getgrent so that it doesn't conflict with some libc's
Diffstat (limited to '')
-rw-r--r--libpwdgrp/initgroups.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpwdgrp/initgroups.c b/libpwdgrp/initgroups.c
index ce63adb18..f97948379 100644
--- a/libpwdgrp/initgroups.c
+++ b/libpwdgrp/initgroups.c
@@ -89,9 +89,9 @@ int initgroups(__const char *user, gid_t gid)
89 group_list[num_groups] = gid; 89 group_list[num_groups] = gid;
90#ifndef GR_DYNAMIC_GROUP_LIST 90#ifndef GR_DYNAMIC_GROUP_LIST
91 while (num_groups < GR_MAX_GROUPS && 91 while (num_groups < GR_MAX_GROUPS &&
92 (group = __getgrent(grp_fd)) != NULL) 92 (group = bb_getgrent(grp_fd)) != NULL)
93#else 93#else
94 while ((group = __getgrent(grp_fd)) != NULL) 94 while ((group = bb_getgrent(grp_fd)) != NULL)
95#endif 95#endif
96 { 96 {
97 if (group->gr_gid != gid) 97 if (group->gr_gid != gid)