Dag-Erling Smorgrav wrote:
> Marcel Moolenaar <[EMAIL PROTECTED]> 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
  tel:  (408) 447-4222

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to