summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/pwd_grp.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-07-15 09:09:24 +0000
committerEric Andersen <andersen@codepoet.org>2004-07-15 09:09:24 +0000
commita43573507b0845a19ee63a619d470b31531f7df0 (patch)
tree39deb8f71ce55c3e7b56d61871bac67d9a0505c3 /libc/pwd_grp/pwd_grp.c
parenta4b98042e64a172e9a595b7df9ff9a160604255a (diff)
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
Diffstat (limited to 'libc/pwd_grp/pwd_grp.c')
-rw-r--r--libc/pwd_grp/pwd_grp.c2
1 files changed, 2 insertions, 0 deletions
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