Use of NGROUPS_MAX on IRIX
David Kaelbling
drk at sgi.com
Sat Mar 16 07:01:04 EST 2002
On IRIX systems getgroups() can actually return as many as NGROUPS_UMAX
entries (32), since NGROUPS_MAX (16) is tunable. Here is a small patch
that uses the bigger constant:
--- ./defines.h Tue Feb 26 11:40:49 2002
+++ ../openssh-3.1p1/./defines.h Fri Mar 15 14:29:34 2002
@@ -104,6 +104,11 @@
#endif
#endif
+#ifdef NGROUPS_UMAX
+#undef NGROUPS_MAX
+#define NGROUPS_MAX NGROUPS_UMAX
+#endif
+
#ifndef O_NONBLOCK /* Non Blocking Open */
# define O_NONBLOCK 00004
#endif
I hope that helps!
David
--
David KAELBLING <drk at sgi.com> Silicon Graphics Computer Systems
1 Cabot Rd, suite 250; Hudson, MA 01749 781.839.2157, fax ...2357
More information about the openssh-unix-dev
mailing list