diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2011-04-25 20:10:11 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2011-04-25 20:10:11 +0000 |
commit | a3f8423a9922faa1e25d4f8d60c79b2ac71ecf22 (patch) | |
tree | 5182a5541776af045c31c69198893dbbfca4b196 /include | |
parent | 1a02234ed70255e55ade6d0d28a9087622447d21 (diff) |
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@
Diffstat (limited to 'include')
-rw-r--r-- | include/grp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grp.h b/include/grp.h index f4012eb6582..f4aa1539655 100644 --- a/include/grp.h +++ b/include/grp.h @@ -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 { |