From 160212fe2d074af5bdc25b219e2276576f52b6e3 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 18 Aug 2002 18:50:52 +0000 Subject: Yet more rework to make __getgrent and the functions that use it reentrant... -Erik --- libc/pwd_grp/grent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc/pwd_grp/grent.c') diff --git a/libc/pwd_grp/grent.c b/libc/pwd_grp/grent.c index 5ebcf265c..587fe0d93 100644 --- a/libc/pwd_grp/grent.c +++ b/libc/pwd_grp/grent.c @@ -41,6 +41,8 @@ static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER; #endif static int grp_fd = -1; +static char *line_buff = NULL; +static char **members = NULL; void setgrent(void) { @@ -69,7 +71,7 @@ struct group *getgrent(void) UNLOCK; return NULL; } - r = __getgrent(grp_fd); + r = __getgrent(grp_fd, line_buff, members); UNLOCK; return r; } -- cgit v1.2.3