From a43573507b0845a19ee63a619d470b31531f7df0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 15 Jul 2004 09:09:24 +0000 Subject: Cleanup a few of the more egregiously broken sysconf values to actually match reality. In particular, _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX were causing us problems with programs such as libglib, since they were always returning -1, which is a bit smaller than the actual passwd and group max buffer sizes. -Erik --- libc/pwd_grp/pwd_grp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/pwd_grp/pwd_grp.c') diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c index 90b4eafd6..91c0d83f5 100644 --- a/libc/pwd_grp/pwd_grp.c +++ b/libc/pwd_grp/pwd_grp.c @@ -49,6 +49,8 @@ /**********************************************************************/ /* Sizes for staticly allocated buffers. */ +/* If you change these values, also change _SC_GETPW_R_SIZE_MAX and + * _SC_GETGR_R_SIZE_MAX in libc/unistd/sysconf.c to match */ #define PWD_BUFFER_SIZE 256 #define GRP_BUFFER_SIZE 256 -- cgit v1.2.3