From aagero@aage.eunet.no  Sat Jun 13 14:40:40 1998
Received: from kirov.eunet.no (kirov.eunet.no [193.71.2.3])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA12568
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 Jun 1998 14:40:38 -0700 (PDT)
          (envelope-from aagero@aage.eunet.no)
Received: from aage.eunet.no (aage.i.eunet.no [193.71.2.239]) by kirov.eunet.no (8.8.6/8.8.2/Torbjorn) with ESMTP id XAA13694 for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 Jun 1998 23:40:33 +0200 (MET DST)
Received: (from aagero@localhost)
	by aage.eunet.no (8.8.8/8.8.8) id XAA15897;
	Sat, 13 Jun 1998 23:40:33 +0200 (CEST)
	(envelope-from aagero)
Message-Id: <199806132140.XAA15897@aage.eunet.no>
Date: Sat, 13 Jun 1998 23:40:33 +0200 (CEST)
From: aagero@Norway.EU.net
Reply-To: aagero@Norway.EU.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: wrong type for userid used in restore(8)
X-Send-Pr-Version: 3.2

>Number:         6939
>Category:       bin
>Synopsis:       restore does not set the correct uid on directories where uid > 32767
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 13 14:50:01 PDT 1998
>Closed-Date:    Fri May 21 16:19:10 PDT 1999
>Last-Modified:  Fri May 21 16:19:58 PDT 1999
>Originator:     ge Rbekk
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
EUnet Norge AS
>Environment:

	2.2.6-STABLE

>Description:

        Restore(8) uses a signed short as the type for uids in directories, which
        hands negative values to chown() when the userid goes beyond 32767 (2^15 - 1)
        
        The net effect is that directories end up with the wrong userid, making
        restores on systems with lots of users problematic.

>How-To-Repeat:

	restore a dump with userids > 32767

>Fix:
	
	Merge revision 1.8 of src/sbin/restore/dirs.c from current.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jmz 
State-Changed-When: Fri May 21 16:19:10 PDT 1999 
State-Changed-Why:  
Fixed in last supported releases. 
>Unformatted:
