From owner-freebsd-current Mon Dec 11 3:31:52 2000 From owner-freebsd-current@FreeBSD.ORG Mon Dec 11 03:31:50 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1E8CC37B698; Mon, 11 Dec 2000 03:31:48 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id WAA17524; Mon, 11 Dec 2000 22:21:32 +1100 Date: Mon, 11 Dec 2000 22:22:57 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Dag-Erling Smorgrav Cc: Marcel Moolenaar , Ruslan Ermilov , current@FreeBSD.ORG Subject: Re: Bootstrapping issues with groff(1) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 10 Dec 2000, Dag-Erling Smorgrav wrote: > Marcel Moolenaar writes: > > According to the manpage, if you remove -U it doesn't create new > > directories or symlinks. At least that's how I interpret it. > > You interpret it wrong. -U just tells mtree to fix permissions. The > canonical way to use the mtree files in /etc/mtree is 'mtree -deU -f > -p ', e.g. 'mtree -deU -f /etc/mtree/BSD.root.dist -p /'. No. (1) -U (and -u) tell mtree to update the hierarchy. It doesn't change anything unless one of these flags is specified. (2) -U is the special FreeBSD exit-no-evil (*) way which is mainly for handling the problem under discussion: mtree -U ignores certain errors (*) so that makeworld can use mtree without having to worry about permissions. The canonical way is `mtree -deu ...'. The manpage gives too much emphasis to -U over -u. (*) verify() doesn't return any errors other than the one canceled by -U. Consequently, -U doesn't actually do anything useful. Using it is equivalent to ignoring the exit status of mtree except for usage errors. Serious errors such as missing files have apparently never been reflected in mtree's exit status. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message