Browse Source

Teach sysconf(_SC_GETGR_R_SIZE_MAX) the correct size of a buffer for the

reentrant getgrent functions (getgrgid_r, getgrnam_r).
seems reasonable to millert@, ok deraadt@
OPENBSD_5_0
sthen 13 years ago
parent
commit
982705a7fa
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/include/grp.h

+ 2
- 1
src/include/grp.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: grp.h,v 1.8 2005/12/13 00:35:22 millert Exp $ */
/* $OpenBSD: grp.h,v 1.9 2011/04/25 20:10:10 sthen Exp $ */
/* $NetBSD: grp.h,v 1.7 1995/04/29 05:30:40 cgd Exp $ */
/*-
@ -45,6 +45,7 @@
#if __BSD_VISIBLE
#define _PATH_GROUP "/etc/group"
#define _GR_BUF_LEN (1024+200*sizeof(char*))
#endif
struct group {


Loading…
Cancel
Save