cvs commit: src/etc/mtree BSD.local.dist BSD.usr.dist

Andrey Chernov ache at nagual.pp.ru
Tue Mar 30 07:52:35 PST 2004


On Tue, Mar 30, 2004 at 10:33:13AM -0500, Brian F. Feldman wrote:
> I did not see an explanation.  I saw that the mtree could fail but not why

See recent discussion in current@

> correctly documenting and enforcing these links in the etc/mtree CANNOT be 
> the wrong thing!

The situation is not so easy, it depends on which mtree mode you use (-P
or -L). I'll try to be short. Imagine, say, you have /var/mail linked to
/disk1/mail. To enforce correct permissions on /disk1/mail you need to use

MTREE_FOLLOWS_SYMLINKS= -L

in your /etc/make.conf (or set it in the env. etc). At least in the past 
some ports try to change /var/mail permission, so it is real life example.

But, once you use -L, all symlinks in the BSD.*.dist becomes 
just directories and mtree will reports mismatch.

-- 
Andrey Chernov | http://ache.pp.ru/


More information about the cvs-src mailing list