diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-15 23:58:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-15 23:58:40 +0000 |
commit | 5fc2437aeed3adf223e54003a077551297ed695f (patch) | |
tree | 2e4f1632fccefa80853c0d9b9b649f4e2253ab42 /sys | |
parent | 4eeb2d3186d8c800dd59710c9f2a804f29a8282b (diff) |
include <sys/syslimits.h> to get access to (and then use) NGROUPS_MAX
discussed at length with guenther
ok millert
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/ucred.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h index dd22f5ae4d9..4e7206a252f 100644 --- a/sys/sys/ucred.h +++ b/sys/sys/ucred.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ucred.h,v 1.9 2014/04/18 11:51:17 guenther Exp $ */ +/* $OpenBSD: ucred.h,v 1.10 2015/01/15 23:58:39 deraadt Exp $ */ /* $NetBSD: ucred.h,v 1.12 1995/06/01 22:44:50 jtc Exp $ */ /* @@ -35,6 +35,8 @@ #ifndef _SYS_UCRED_H_ #define _SYS_UCRED_H_ +#include <sys/syslimits.h> + /* * Credentials. */ @@ -50,7 +52,7 @@ struct ucred { gid_t cr_rgid; /* Real group id. */ gid_t cr_svgid; /* Saved effective group id. */ short cr_ngroups; /* number of groups */ - gid_t cr_groups[NGROUPS]; /* groups */ + gid_t cr_groups[NGROUPS_MAX]; /* groups */ }; #define NOCRED ((struct ucred *)-1) /* no credential available */ #define FSCRED ((struct ucred *)-2) /* filesystem credential */ @@ -62,7 +64,7 @@ struct xucred { uid_t cr_uid; /* user id */ gid_t cr_gid; /* group id */ short cr_ngroups; /* number of groups */ - gid_t cr_groups[NGROUPS]; /* groups */ + gid_t cr_groups[NGROUPS_MAX]; /* groups */ }; #ifdef _KERNEL |