From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 16 12:50:26 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF59516A4E0 for ; Wed, 16 Aug 2006 12:50:26 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AABE343D58 for ; Wed, 16 Aug 2006 12:50:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7GCoPGr064231 for ; Wed, 16 Aug 2006 12:50:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7GCoPSd064230; Wed, 16 Aug 2006 12:50:25 GMT (envelope-from gnats) Date: Wed, 16 Aug 2006 12:50:25 GMT Message-Id: <200608161250.k7GCoPSd064230@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Spencer Minear Cc: Subject: Re: bin/101660: restore(8) does not preserve uid and gid on short symlinks X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Spencer Minear List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 12:50:26 -0000 The following reply was made to PR bin/101660; it has been noted by GNATS. From: Spencer Minear To: "Andrey V. Elsukov" Cc: bug-followup@FreeBSD.org, minear@securecomputing.com Subject: Re: bin/101660: restore(8) does not preserve uid and gid on short symlinks Date: Wed, 16 Aug 2006 07:38:59 -0500 The change you have is logically consistent with the change I put into our code tree a while back and it has proven to work fine and solved the problem I found. The only differences are that I used, pid_t and gid_t in the variable definitions, and I the values for the two new variables on function entry at the same time we get all of the other values out of curfile for later use. Thus, though I have not run your exact code, I believe it will fix the problem. -- Spence --------------------------------------------------------------- The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any review, dissemination, distribution or copying is strictly prohibited. If you have received this email message in error, please notify the sender by reply email and delete the message and any attachments. Spencer Minear Ph. D. Secure Computing Corp. minear@securecomputing.com 2340 Energy Park Drive (651) 628-2756 St. Paul, MN 55108 U.S.A. (651) 628-2701 (fax) ---------------------------------------------------------------