Skip to content

tarfile.extractall fails to overwrite symlinks #75989

Closed

Description

@FredericBeister
BPO 31808
Nosy @serhiy-storchaka, @corona10

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2017-10-18.08:29:35.565>
labels = ['3.7', 'type-bug', 'library']
title = 'tarfile.extractall fails to overwrite symlinks'
updated_at = <Date 2017-11-19.10:10:23.383>
user = 'https://bugs.python.org/FredericBeister'

bugs.python.org fields:

activity = <Date 2017-11-19.10:10:23.383>
actor = 'corona10'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-10-18.08:29:35.565>
creator = 'Frederic Beister'
dependencies = []
files = []
hgrepos = []
issue_num = 31808
keywords = ['patch']
message_count = 2.0
messages = ['304563', '306348']
nosy_count = 3.0
nosy_names = ['serhiy.storchaka', 'corona10', 'Frederic Beister']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue31808'
versions = ['Python 3.6', 'Python 3.7']

Linked PRs

Activity

  1. FredericBeister commented on Oct 18, 2017

    FredericBeistermannequin
    MannequinAuthor

    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)

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-bugAn unexpected behavior, bug, or error
    on Oct 18, 2017
  3. corona10 commented on Nov 16, 2017

    @corona10
    Member

    I 've submitted the patch please take a look.

  4. transferred this issue fromon Apr 10, 2022
  5. added 3 commits that reference this issue on Aug 1, 2025
  6. aeurielesn commented on Aug 2, 2025

    @aeurielesn
    Contributor

    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.

  7. added a commit that references this issue on Aug 6, 2025
  8. encukou commented on Aug 6, 2025

    @encukou
    Member

    Thanks for the fix!
    The backport should go to 3.14.1, so I'll keep the issue open.

  9. added a commit that references this issue on Aug 19, 2025
  10. added a commit that references this issue on Oct 7, 2025
  11. added a commit that references this issue on Oct 7, 2025
  12. added a commit that references this issue on Oct 8, 2025
  13. added a commit that references this issue on Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions