Wojciech Muła <[email protected]> added the comment:
Confirmed in python3.2.
Lib/posixpath.py/_resolve_link: path returned by readlink
is normalized by normpath. In this case readlink('zlink')
returns 'xlink/../blink', then normpath is called, and
returns 'blink'. This ends processing because 'blink'
isn't a link.
I've attached procedure that does [IMHO] correct symlink
resolution (this is just proof-of-concept, it is slow and
doesn't deal with cyclic links).
----------
nosy: +wm
versions: +Python 3.2
Added file: http://bugs.python.org/file21011/poc.py
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11397>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com