From owner-freebsd-current Sun Dec 10 13:26:16 2000 From owner-freebsd-current@FreeBSD.ORG Sun Dec 10 13:26:14 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 2863737B401; Sun, 10 Dec 2000 13:26:10 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id 4161017EB; Sun, 10 Dec 2000 13:26:09 -0800 (PST) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id NAA25936; Sun, 10 Dec 2000 13:26:04 -0800 (PST) Sender: marcel@cup.hp.com Message-ID: <3A33F4EC.4D9FADC@cup.hp.com> Date: Sun, 10 Dec 2000 13:26:04 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Dag-Erling Smorgrav Cc: Ruslan Ermilov , current@FreeBSD.ORG Subject: Re: Bootstrapping issues with groff(1) References: <20001208181908.A12716@sunbay.com> <3A319650.90FE8EAE@cup.hp.com> <20001209154901.B78374@sunbay.com> <3A32996C.1BE57FCE@cup.hp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 /'. See src/usr.sbin/mtree/verify.c, line 211. This is the only occurence of mkdir and thus the only place where directories are created. The mkdir(2) is in the then-part of the if-statement on line 194 and is only executed if uflag != 0. uflag is set by options -U or -u. Ergo: without -U or -u no directories are created. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message