svn commit: r194412 - projects/ngroups/sys/sys
Brooks Davis
brooks at FreeBSD.org
Thu Jun 18 02:51:44 UTC 2009
Author: brooks
Date: Thu Jun 18 02:51:43 2009
New Revision: 194412
URL: http://svn.freebsd.org/changeset/base/194412
Log:
Put parens around the definition of NGROUPS to avoid operator precedence
bugs in code that uses it.
Submitted by: Matthew Fleming <matthew dot fleming at isilon dot com>
Modified:
projects/ngroups/sys/sys/param.h
Modified: projects/ngroups/sys/sys/param.h
==============================================================================
--- projects/ngroups/sys/sys/param.h Thu Jun 18 01:11:10 2009 (r194411)
+++ projects/ngroups/sys/sys/param.h Thu Jun 18 02:51:43 2009 (r194412)
@@ -77,7 +77,7 @@
#define MAXLOGNAME 17 /* max login name length (incl. NUL) */
#define MAXUPRC CHILD_MAX /* max simultaneous processes */
#define NCARGS ARG_MAX /* max bytes for an exec function */
-#define NGROUPS NGROUPS_MAX+1 /* max number groups */
+#define NGROUPS (NGROUPS_MAX+1) /* max number groups */
#define NOFILE OPEN_MAX /* max open files per process */
#define NOGROUP 65535 /* marker for empty group set member */
#define MAXHOSTNAMELEN 256 /* max hostname size */
More information about the svn-src-projects
mailing list