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

2020-05-30 Thread Eryk Sun
Eryk Sun added the comment: This is still a problem with WinAPI CreateSymbolicLinkW. It fails to replace slashes with backslashes in the substitute path if it's a relative path, which creates a broken link. As a workaround, os.symlink should replace slashes with backslashes in relative

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

2014-05-07 Thread Tim Golden
Tim Golden added the comment: eryksun: could you essay a patch? I'd be happy to review apply it. -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13702 ___

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

2014-05-06 Thread Andreas Gäer
Andreas Gäer added the comment: Is there any progress to the question if the problem should be fixed in os.symlink or in tarfile? Because this currently seems to break installing source packages that contain symlinks with pip under Windows. Try: pip install networkx==1.8.1 for example

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

2014-05-06 Thread eryksun
eryksun added the comment: This should be fixed in os.symlink. The Windows CreateSymbolicLink function can't be relied on to translate slash to backslash. It only normalizes an absolute link, or a path that's relative to the current working directory on a drive (e.g. R:../crypto) since that's

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

2012-01-05 Thread Lars Gustäbel
Lars Gustäbel l...@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().

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

2012-01-05 Thread Patrick von Reth
Patrick von Reth patrick.vonr...@gmail.com added the comment: to ignore the bug I also tried dereference=True, but it looks like python3 is ignoring it for extraction. Is this the normal behavior or just another bug? -- ___ Python tracker

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

2012-01-05 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: The dereference option is only used for archive creation, so the contents of the file a symbolic link is pointing to is added instead of the symbolic link itself. -- ___ Python tracker

[issue13702] relative symlinks in tarfile.extract broken

2012-01-03 Thread Patrick von Reth
New submission from Patrick von Reth patrick.vonr...@gmail.com: when extracting http://www.openssl.org/source/openssl-1.0.0d.tar.gz with python3.2 on windows 7 extraction fails with File C:\python32\lib\tarfile.py, line 2175, in extract set_attrs=set_attrs) File

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

2012-01-03 Thread Patrick von Reth
Changes by Patrick von Reth patrick.vonr...@gmail.com: -- title: relative symlinks in tarfile.extract broken - relative symlinks in tarfile.extract broken (windows) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13702

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

2012-01-03 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13702 ___ ___

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

2012-01-03 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel nosy: +lars.gustaebel versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13702 ___