[issue13702] relative symlinks in tarfile.extract broken (windows)

Lars Gustäbel report at bugs.python.org
Thu Jan 5 17:47:31 CET 2012


Lars Gustäbel <lars at gustaebel.de> added the comment:

You actually hit two bugs at the same time here: The target of the created symlink was not translated from unix to windows path delimiters and is therefore broken. The second bug is issue12926 which leads to the error in TarFile.makefile(). 

Brian, AFAIK all file-specific functions on windows accept forward slashes in pathnames, right? Has this been discussed in the course of the windows implementation of os.symlink()? I could certainly fix the slash translation in tarfile.py, but may be it's os.symlink() that should been fixed.

----------
dependencies: +tarfile tarinfo.extract*() broken with symlinks

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


More information about the Python-bugs-list mailing list