From kato@migmatite.eps.nagoya-u.ac.jp  Tue Feb  3 17:41:00 1998
Received: from marble.eps.nagoya-u.ac.jp (marble.eps.nagoya-u.ac.jp [133.6.124.146])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA16294
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 3 Feb 1998 17:40:59 -0800 (PST)
          (envelope-from kato@migmatite.eps.nagoya-u.ac.jp)
Received: (from kato@localhost) by marble.eps.nagoya-u.ac.jp (8.8.8/3.4W4) id KAA01171; Wed, 4 Feb 1998 10:40:57 +0900 (JST)
Message-Id: <199802040140.KAA01171@marble.eps.nagoya-u.ac.jp>
Date: Wed, 4 Feb 1998 10:40:57 +0900 (JST)
From: KATO Takenori <kato@migmatite.eps.nagoya-u.ac.jp>
Reply-To: kato@migmatite.eps.nagoya-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: incorrect gid-map in umapfs
X-Send-Pr-Version: 3.2

>Number:         5640
>Category:       kern
>Synopsis:       incorrect gid-map in umapfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb  3 17:50:01 PST 1998
>Closed-Date:    Fri Feb 6 17:38:30 PST 1998
>Last-Modified:  Fri Feb  6 17:39:36 PST 1998
>Originator:     KATO Takenori
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Dept. Earth Planet. Sci, Nagoya Univ.
>Environment:


>Description:

If the number of entries in gid-mapfile is differs from that of
uid-mapfile, gid-map is incorrect.

>How-To-Repeat:

	

>Fix:
	
---------- BEGIN ----------
*** umap_vfsops.c.ORIG	Wed Feb  4 10:32:28 1998
--- umap_vfsops.c	Wed Feb  4 10:33:04 1998
***************
*** 168,174 ****
  #endif
  
  	error = copyin(args.gmapdata, (caddr_t)amp->info_gmapdata,
! 	    2*sizeof(u_long)*args.nentries);
  	if (error)
  		return (error);
  
--- 168,174 ----
  #endif
  
  	error = copyin(args.gmapdata, (caddr_t)amp->info_gmapdata,
! 	    2*sizeof(u_long)*args.gnentries);
  	if (error)
  		return (error);
  
---------- END ----------
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kato 
State-Changed-When: Fri Feb 6 17:38:30 PST 1998 
State-Changed-Why:  
Fixed. 
>Unformatted:
