From owner-freebsd-bugs Sat Jun 13 14:50:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA13904 for freebsd-bugs-outgoing; Sat, 13 Jun 1998 14:50:37 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA13897 for ; Sat, 13 Jun 1998 14:50:35 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA02055; Sat, 13 Jun 1998 14:50:01 -0700 (PDT) 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 ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/6939: wrong type for userid used in restore(8) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 13 14:50:01 PDT 1998 >Last-Modified: >Originator: Åge Røbekk >Organization: EUnet Norge AS >Release: FreeBSD 2.2.6-STABLE i386 >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. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message