Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 2010 21:47:25 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r204671 - stable/8/lib/libc/rpc
Message-ID:  <201003032147.o23LlP4k075159@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Wed Mar  3 21:47:25 2010
New Revision: 204671
URL: http://svn.freebsd.org/changeset/base/204671

Log:
  MFC r201959
  
  Use the correct types to store uids and gids in the credential cache and
  eliminate an inappropriate use of NGROUPS.

Modified:
  stable/8/lib/libc/rpc/svc_auth_des.c
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/rpc/svc_auth_des.c
==============================================================================
--- stable/8/lib/libc/rpc/svc_auth_des.c	Wed Mar  3 21:46:51 2010	(r204670)
+++ stable/8/lib/libc/rpc/svc_auth_des.c	Wed Mar  3 21:47:25 2010	(r204671)
@@ -449,10 +449,10 @@ cache_spot(key, name, timestamp)
 #define INVALID		-1 	/* grouplen, if cache entry is invalid */
 
 struct bsdcred {
-	short uid;		/* cached uid */
-	short gid;		/* cached gid */
-	short grouplen;	/* length of cached groups */
-	short groups[NGROUPS];	/* cached groups */
+	uid_t uid;		/* cached uid */
+	gid_t gid;		/* cached gid */
+	int grouplen;	/* length of cached groups */
+	gid_t groups[NGRPS];	/* cached groups */
 };
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003032147.o23LlP4k075159>