You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tarfile.extractall fails to overwrite symlinks #75989
The fix for https://bugs.python.org/issue10761 somehow didn't make it into 3.5 and later - I have the same behavior as described there in 3.5.1 and 3.6.1 (tested on Ubuntu 16.04)
I confirmed that part of the reported issue has been fixed for symlinks in #21409.
However, I could confirm the same issue happens for hardlinks as well. I have opened a PR to address this corner case.
Activity
FredericBeister commentedon Oct 18, 2017
The fix for https://bugs.python.org/issue10761 somehow didn't make it into 3.5 and later - I have the same behavior as described there in 3.5.1 and 3.6.1 (tested on Ubuntu 16.04)
corona10 commentedon Nov 16, 2017
I 've submitted the patch please take a look.
pythongh-75989: tarfile.extractall fails to overwrite symlinks
pythongh-75989: tarfile.extractall fails to overwrite symlinks
pythongh-75989: tarfile.extractall fails to overwrite symlinks
aeurielesn commentedon Aug 2, 2025
I confirmed that part of the reported issue has been fixed for symlinks in #21409.
However, I could confirm the same issue happens for hardlinks as well. I have opened a PR to address this corner case.
gh-75989: TarFile.extractall and TarFile.extract now overwrite symlin…
encukou commentedon Aug 6, 2025
Thanks for the fix!
The backport should go to 3.14.1, so I'll keep the issue open.
pythongh-75989: TarFile.extractall and TarFile.extract now overwrite …
pythongh-75989: TarFile.extractall and TarFile.extract now overwrite …
[3.14] gh-75989: TarFile.extractall and TarFile.extract now overwrite…
pythongh-75989: TarFile.extractall and TarFile.extract now overwrite …
[3.13] gh-75989: TarFile.extractall and TarFile.extract now overwrite…