cvs commit: src/etc Makefile

Doug Barton DougB at FreeBSD.org
Thu Oct 7 11:57:44 PDT 2004


On Thu, 7 Oct 2004, Ruslan Ermilov wrote:

> There's a chicken and egg problem with relative symlinking that uses
> "..".  While having it relative would "fix" an issue that you mention
> above, it will equally create a problem if one has /etc as a symlink
> to some other directory, not necessarily one-level deep from root.

Errrrr, how likely do you think that is to actually happen? My feeling 
is that the number of people who'd be building disks in a separate 
environment is much, much greater than those who might be symlinking 
/etc.

> Let's don't go this road again and again.  We've learned the hard way
> (with /usr/lib symlinks to /lib, please see bsd.lib.mk commit logs for
> details) that relative symlinking that uses ".." is generally a bad
> idea, and that it should only be used when we're confident that
> resolving ".." will give us a sane path.

Well, my feeling is that this is one of those cases.

Doug


-- 

     This .signature sanitized for your protection



More information about the cvs-src mailing list