diff options
Diffstat (limited to 'libpwdgrp/getgrnam.c')
-rw-r--r-- | libpwdgrp/getgrnam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpwdgrp/getgrnam.c b/libpwdgrp/getgrnam.c index bf7f7646d..46950e2b6 100644 --- a/libpwdgrp/getgrnam.c +++ b/libpwdgrp/getgrnam.c | |||
@@ -39,7 +39,7 @@ struct group *getgrnam(const char *name) | |||
39 | if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0) | 39 | if ((grp_fd = open(bb_path_group_file, O_RDONLY)) < 0) |
40 | return NULL; | 40 | return NULL; |
41 | 41 | ||
42 | while ((group = __getgrent(grp_fd)) != NULL) | 42 | while ((group = bb_getgrent(grp_fd)) != NULL) |
43 | if (!strcmp(group->gr_name, name)) { | 43 | if (!strcmp(group->gr_name, name)) { |
44 | close(grp_fd); | 44 | close(grp_fd); |
45 | return group; | 45 | return group; |