Re: poorly set up symlinks

Matthew Hiller (matthew.hiller@yale.edu)
Sat, 27 Feb 1999 15:22:22 -0500 (EST)

How 'bout

$ find /usr/X11R6/lib/X11 -lname '*..*'

Strictly speaking, find may not be all that true to the UNIX
philosophy (it does too much, instead of being a small tool that's
powerful when used along with lots of other small tools in a pipeline),
but it's often quite useful for things like this.

It was actually kind of interesting to run this command on /
to see how many back-pointing symlinks there are in my whole filesystem.

Matt

On Sat, 27 Feb 1999, Tim Lovelock wrote:

> Well, I tracked down the problem I was having getting X to run
> correctly. I found out that a couple of files in /usr/X11R6/lib/X11
> were linking to ../../../../etc/X11, rather then simply /etc/X11.
> Needless to say, this was causing problems when I moved /usr to
> /hdd/usr. Here's the problem though, a quick and dirty search using ls
> -l -R | grep ../ revealed that there were a bunch of files linked this
> way. Unfortunatly, I don't know where they are, given the way
> I searched for them, and don't know any easy way to fix them so that
> they point directly to / Thoughts?
>
>
> --Tim