pass an array of gid_t, not int, to getgrouplist().

This commit is contained in:
mrg 2006-05-11 07:11:08 +00:00
parent 0dc9fb54b5
commit 9ef684e646
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mountd.c,v 1.102 2006/03/23 23:51:25 wiz Exp $ */
/* $NetBSD: mountd.c,v 1.103 2006/05/11 07:11:08 mrg Exp $ */
/*
* Copyright (c) 1989, 1993
@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
#else
__RCSID("$NetBSD: mountd.c,v 1.102 2006/03/23 23:51:25 wiz Exp $");
__RCSID("$NetBSD: mountd.c,v 1.103 2006/05/11 07:11:08 mrg Exp $");
#endif
#endif /* not lint */
@ -2250,7 +2250,8 @@ parsecred(namelist, cr)
char *names;
struct passwd *pw;
struct group *gr;
int ngroups, groups[NGROUPS + 1];
int ngroups;
gid_t groups[NGROUPS + 1];
/*
* Set up the unprivileged user.