tweak comment reminding us about lack of reentrancy
This commit is contained in:
parent
72ad9c4bc4
commit
7f46de1e4e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: getgrent.c,v 1.54 2005/01/06 15:00:45 lukem Exp $ */
|
||||
/* $NetBSD: getgrent.c,v 1.55 2005/03/31 23:58:28 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999-2000, 2004-2005 The NetBSD Foundation, Inc.
|
||||
|
@ -95,7 +95,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: getgrent.c,v 1.54 2005/01/06 15:00:45 lukem Exp $");
|
||||
__RCSID("$NetBSD: getgrent.c,v 1.55 2005/03/31 23:58:28 lukem Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -1306,7 +1306,7 @@ __grscan_compat(int *retval, struct group *grp, char *buffer, size_t buflen,
|
|||
free(state->name); /* (only check 1 grp) */
|
||||
state->name = NULL;
|
||||
} else if (!search) { /* any group */
|
||||
/* XXXLUKEM: need to implement and use getgrent_r() */
|
||||
/* XXXREENTRANT: need to implement and use getgrent_r() */
|
||||
if (searchfunc) {
|
||||
crv = searchfunc(searchcookie,
|
||||
&cgrpres);
|
||||
|
|
Loading…
Reference in New Issue