summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-10-02 11:40:48 +0000
committerstefanf <stefanf@FreeBSD.org>2004-10-02 11:40:48 +0000
commitd00a4eaaead4ab4b18854f36695ffdd9a4a08df8 (patch)
treeb1445db5fc9310748356059b2012b0bbf474cc63 /usr.sbin/mountd
parent19377ec887db0bddf61b00fed90f57dfcb29ee6a (diff)
downloadFreeBSD-src-d00a4eaaead4ab4b18854f36695ffdd9a4a08df8.zip
FreeBSD-src-d00a4eaaead4ab4b18854f36695ffdd9a4a08df8.tar.gz
Pass an array of gid_t rather than an array of int to getgroups().
PR: 56646
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 242a30e..f937466 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -2144,7 +2144,8 @@ parsecred(namelist, cr)
char *names;
struct passwd *pw;
struct group *gr;
- int ngroups, groups[NGROUPS + 1];
+ gid_t groups[NGROUPS + 1];
+ int ngroups;
cr->cr_version = XUCRED_VERSION;
/*
@@ -2175,7 +2176,7 @@ parsecred(namelist, cr)
if (getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups))
syslog(LOG_ERR, "too many groups");
/*
- * Convert from int's to gid_t's and compress out duplicate
+ * Compress out duplicate.
*/
cr->cr_ngroups = ngroups - 1;
cr->cr_groups[0] = groups[0];
OpenPOWER on IntegriCloud