[issue35483] tarfile.extractall on existing symlink in Ubuntu overwrites target file, not symlink, unlinke GNU tar
Martin Panter
report at bugs.python.org
Sat Dec 15 20:45:59 EST 2018
Martin Panter <vadmium+py at gmail.com> added the comment:
The first aspect, incorrectly assuming the OS does not support symlinks, is described at <https://bugs.python.org/issue23228#msg265146>. Lars proposed a fix <https://bugs.python.org/file42780/windowserror.diff> which will let the OS exception escape to the caller. However I think that patch needs more work.
The second aspect is replacing existing symlinks and other directory entries. This was implemented in 2.7 in Issue 10761 and Issue 12088 (only when replacing non-subdirectories with symbolic links and hard links), and is discussed more generally in Issue 19974.
I suggest to close this in favour of resolving Issue 23228 and Issue 19974.
----------
nosy: +lars.gustaebel, martin.panter
superseder: -> The tarfile module crashes when tarfile contains a symlink and unpack directory contain it too
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35483>
_______________________________________
More information about the Python-bugs-list
mailing list