[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [severe] access outside simlinked directory

From: Paul Jarc
Subject: Re: [severe] access outside simlinked directory
Date: Wed, 26 Nov 2008 11:04:51 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

AT-HE <address@hidden> wrote:
>         if you have a simlink pointing to a directory, chdir to that symlink 
> dir, and type something with '..',
>         you access the parent of real directory, not previous simlinked one.

That's the kernel's doing, not bash's.  When interpreting pathnames
relative to the current working directory, the kernel only cares about
where you are, not how you got there.  It's been that way for as long
as Unix has had symlinks, and changing it now would break a lot of
programs that expect the current behavior.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]