From owner-freebsd-bugs Mon Aug 12 12:10: 8 2002 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 A5A3A37B400 for ; Mon, 12 Aug 2002 12:10:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3E3643E88 for ; Mon, 12 Aug 2002 12:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7CJA2JU087882 for ; Mon, 12 Aug 2002 12:10:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7CJA29V087881; Mon, 12 Aug 2002 12:10:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF58D37B401 for ; Mon, 12 Aug 2002 12:08:57 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C06D43E4A for ; Mon, 12 Aug 2002 12:08:57 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7CJ8vOT022673 for ; Mon, 12 Aug 2002 12:08:57 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g7CJ8vGd022672; Mon, 12 Aug 2002 12:08:57 -0700 (PDT) Message-Id: <200208121908.g7CJ8vGd022672@www.freebsd.org> Date: Mon, 12 Aug 2002 12:08:57 -0700 (PDT) From: Mike Hibler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/41583: assorted mtree bugs (+fixes) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41583 >Category: bin >Synopsis: assorted mtree bugs (+fixes) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 12 12:10:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Mike Hibler >Release: 4.6-STABLE >Organization: Flux group, University of Utah >Environment: FreeBSD bas.flux.utah.edu 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 14:27:24 MDT 2002 mike@bas:/usr/obj/usr/src/sys/FLUX i386 >Description: Three bugs in mtree: 1. Cannot handle filenames which start with '#'. This one has been reported before (bin/35226, bin/41246). My "fix" is different than the one in 35226, I just added the '-N' option which says: when creating a spec, don't ever produce comments and when reading a spec, don't expect comments. The aforementioned fix is probably better than mine. 2. Cannot handle symlink values with non-standard chars. This one has also been reported/fixed previously (bin/35454). My fix is essentially the same. 3. Mishandles fixing owner/mode of symlinks when using -P When using -P in conjunction with -U, mtree chown/chmods the target of the symlink rather than the symlink itself. This does not match the semantics for creation of a spec file where -P gives you the attributes of the link. >How-To-Repeat: Use mtree on non-trivial hierarchies. >Fix: Grab: ftp://www.flux.utah.edu/flux/freebsd/mtree.patch >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message