Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2009 16:13:29 +0000
From:      Chris Rees <utisoft@googlemail.com>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: links vs real directories
Message-ID:  <b79ecaef0903160913y673a9b9bic9ddf09ab931d56f@mail.gmail.com>
In-Reply-To: <b79ecaef0903160912o77dc5187y76223ca1a91fc9f2@mail.gmail.com>
References:  <AA5A8761-794A-427B-9E9F-2872BD746038@identry.com> <20090316153923.GA13043@owl.midgard.homeip.net> <33BEAB1A-A0AB-4684-95EE-8C2C4328ABA7@identry.com> <b79ecaef0903160912o77dc5187y76223ca1a91fc9f2@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
2009/3/16 John Almberg <jalmberg@identry.com>:
>
> On Mar 16, 2009, at 11:39 AM, Erik Trulsson wrote:
>
>> On Mon, Mar 16, 2009 at 11:22:13AM -0400, John Almberg wrote:
>>>
>>> I always thought that links to real directories were pretty much the
>>> same as real directories, but I've just discovered a situation where
>>> they are not and I'm wondering if I'm doing something wrong...
>>
>> A *soft* link to a directory entry (be it a directory or a file or
>> something
>> else) is not quite equivalent to the original entry since they are easil=
y
>> distinguished and some programs do treat softlinks differently from othe=
r
>> targets.
>
> I can see that, now... If I create a soft link to ~/shared/config, and th=
en
> cd into the directory, when I type 'ls ..', I get the listing for ~/share=
d,
> not ~/app.
>
> Bummer...
>
> I've just dug through man ln, and don't see any obvious solution. Since t=
his
> must be a problem for anyone who wants to do something like this, I guess=
 I
> am taking the wrong approach, altogether.
>
> Will have to re-think this....
>
> <smell of burning rubber commences...>
>
> -- John
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>

When we're talking in a technical sense, we should probably use the
correct terms. The 'official' and more descriptive name for a softlink
is a symbolic link.

Symbolic links are an absolute nightmare for security purposes, and
many programs (especially ones set to run suid) choke on them. This
could be intentional....

Since RoR is free software, you could dive in and edit where it looks
for in the source code, or look for a compile-time option. Try

/dir/to/port's/work/directory # ./configure --help


Chris

--
R< $&h ! > $- ! $+ =A0 =A0 =A0$@ $2 < @ $1 .UUCP. > (sendmail.cf)



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?b79ecaef0903160913y673a9b9bic9ddf09ab931d56f>