This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mkovtun
Recipients mkovtun
Date 2011-03-04.17:17:17
SpamBayes Score 2.0035047e-09
Marked as misclassified No
Message-id <1299259038.05.0.675723191983.issue11397@psf.upfronthosting.co.za>
In-reply-to
Content
This bug appears in Python 2.4, 2.5, 2.6; not tested in Python 2.7.

How to reproduce on Linux:
{{{
$ mkdir ~/testsymlinks
$ cd ~/testsymlinks
$ mkdir adir
$ ln -s ../adir adir/blink
$ mkdir -p  adir/cdir/ddir
$ ln -s adir/cdir/ddir/.. xlink
$ ln -s xlink/../blink zlink
}}}
Then:
{{{
$ readlink zlink -f
/home/user/testsymlinks/adir
}}}
but:
{{{
$ python
Python 2.4.3 (#1, Sep  3 2009, 15:37:37) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os.path
>>> os.path.realpath('zlink')
'/home/user/testsymlinks/blink'
>>>
}}}
History
Date User Action Args
2011-03-04 17:17:18mkovtunsetrecipients: + mkovtun
2011-03-04 17:17:18mkovtunsetmessageid: <1299259038.05.0.675723191983.issue11397@psf.upfronthosting.co.za>
2011-03-04 17:17:17mkovtunlinkissue11397 messages
2011-03-04 17:17:17mkovtuncreate