[issue15196] os.path.realpath gets confused when symlinks include '..'

Antoine Pitrou report at bugs.python.org
Tue Jun 26 22:08:57 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

Indeed, this is pretty bad behaviour, especially for realpath(). Both abspath() and normpath() should never be called before any symlinks are resolved.

Of course, fixing it as a bug means it could break existing code which relies on ".." fragments being folded.

----------
nosy: +hynek, pitrou
priority: normal -> high
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15196>
_______________________________________


More information about the Python-bugs-list mailing list