From b1ce1770ea256a9a2e88c4d0be902322899fe42d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 11 Aug 2009 07:28:22 +0000 Subject: [PATCH] * include/limits.h (NGROUPS_MAX): Set to a more sane value. * include/sys/param.h (NGROUPS): Ditto. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/include/limits.h | 2 +- winsup/cygwin/include/sys/param.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index dc5033fc1..8af4f6c9d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-08-11 Corinna Vinschen + + * include/limits.h (NGROUPS_MAX): Set to a more sane value. + * include/sys/param.h (NGROUPS): Ditto. + 2009-08-10 Corinna Vinschen * spawn.cc (av::fixup): Check shell scripts for executability only on diff --git a/winsup/cygwin/include/limits.h b/winsup/cygwin/include/limits.h index fdda01298..f3bdece68 100644 --- a/winsup/cygwin/include/limits.h +++ b/winsup/cygwin/include/limits.h @@ -404,7 +404,7 @@ details. */ /* Max num groups for a user, value taken from NT documentation */ /* Must match NGROUPS */ #undef NGROUPS_MAX -#define NGROUPS_MAX 16 +#define NGROUPS_MAX 1024 /* Maximum number of repeated occurrences of a regular expression when using the interval notation \{m,n\} */ diff --git a/winsup/cygwin/include/sys/param.h b/winsup/cygwin/include/sys/param.h index 00a9b5ef8..c84ea5a04 100644 --- a/winsup/cygwin/include/sys/param.h +++ b/winsup/cygwin/include/sys/param.h @@ -19,7 +19,7 @@ #define NOFILE 8192 /* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */ -#define NGROUPS 16 +#define NGROUPS 1024 /* Ticks/second for system calls such as times() */ /* FIXME: is this the appropriate value? */ -- 2.43.5