mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
Fix build for FBSD80
The change to a dynamically-allocated group list came before the change to allow the maximum size of that group list to be set as a tuneable at boot. The 8.0 release happened to come between them, so we must treat both cases. (Note that AFS_FBSD81_ENV is not yet defined anywhere; that will come later.) Change-Id: I87a0e2cff3c42de60d512fe5653abe0161afc789 Reviewed-on: http://gerrit.openafs.org/1676 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
0b475c0c5f
commit
709315400c
@ -75,12 +75,15 @@ int
|
||||
setpag(struct thread *td, struct ucred **cred, afs_uint32 pagvalue,
|
||||
afs_uint32 * newpag, int change_parent)
|
||||
{
|
||||
#ifdef AFS_FBSD80_ENV
|
||||
#if defined(AFS_FBSD81_ENV)
|
||||
gid_t *gidset;
|
||||
int gidset_len = ngroups_max;
|
||||
int gidset_len = ngroups_max + 1;
|
||||
#elif defined(AFS_FBSD80_ENV)
|
||||
gid_t *gidset;
|
||||
int gidset_len = NGROUPS; /* 1024 */
|
||||
#else
|
||||
gid_t gidset[NGROUPS];
|
||||
int gidset_len = NGROUPS;
|
||||
int gidset_len = NGROUPS; /* 16 */
|
||||
#endif
|
||||
int ngroups, code;
|
||||
int j;
|
||||
|
Loading…
Reference in New Issue
Block a user