Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Dec 2000 13:26:04 -0800
From:      Marcel Moolenaar <marcel@cup.hp.com>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Ruslan Ermilov <ru@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: Bootstrapping issues with groff(1)
Message-ID:  <3A33F4EC.4D9FADC@cup.hp.com>
References:  <20001208181908.A12716@sunbay.com> <3A319650.90FE8EAE@cup.hp.com> <20001209154901.B78374@sunbay.com> <3A32996C.1BE57FCE@cup.hp.com> <xzpn1e43rq3.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:
> 
> Marcel Moolenaar <marcel@cup.hp.com> 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
> <file> -p <path>', 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A33F4EC.4D9FADC>