Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tarfile: broken hardlink handling and testcase. #53079

Closed
jsbronder mannequin opened this issue May 27, 2010 · 2 comments
Closed

tarfile: broken hardlink handling and testcase. #53079

jsbronder mannequin opened this issue May 27, 2010 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@jsbronder
Copy link
Mannequin

jsbronder mannequin commented May 27, 2010

BPO 8833
Nosy @gustaebel, @jsbronder
Files
  • python-2.7-tarfile-hardlinks.patch
  • 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 = 'https://github.com/gustaebel'
    closed_at = <Date 2010-06-03.10:18:09.621>
    created_at = <Date 2010-05-27.16:07:07.922>
    labels = ['type-bug', 'library']
    title = 'tarfile:  broken hardlink handling and testcase.'
    updated_at = <Date 2010-06-03.10:18:09.619>
    user = 'https://github.com/jsbronder'

    bugs.python.org fields:

    activity = <Date 2010-06-03.10:18:09.619>
    actor = 'lars.gustaebel'
    assignee = 'lars.gustaebel'
    closed = True
    closed_date = <Date 2010-06-03.10:18:09.621>
    closer = 'lars.gustaebel'
    components = ['Library (Lib)']
    creation = <Date 2010-05-27.16:07:07.922>
    creator = 'jsbronder'
    dependencies = []
    files = ['17474']
    hgrepos = []
    issue_num = 8833
    keywords = ['patch']
    message_count = 2.0
    messages = ['106612', '106936']
    nosy_count = 2.0
    nosy_names = ['lars.gustaebel', 'jsbronder']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8833'
    versions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']

    @jsbronder
    Copy link
    Mannequin Author

    jsbronder mannequin commented May 27, 2010

    When adding hardlinks to an archive, tarfile does not set the size
    of each additional link to zero as specified by the tar format [1].

    In addition, the current test case hardlinks is also broken.
    Instead of testing that the size of a hardlink to a non-empty file
    is 0, it tests that the size to a empty file is zero, which cannot
    fail.

    A patch against current svn trunk is attached and was tested with
    'python -m test.regrtest -v test_tarfile'

    1. http://www.gnu.org/software/tar/manual/tar.html#SEC170

    @jsbronder jsbronder mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels May 27, 2010
    @gustaebel gustaebel mannequin self-assigned this May 27, 2010
    @gustaebel
    Copy link
    Mannequin

    gustaebel mannequin commented Jun 3, 2010

    Thank you very much for this valuable report. Fixed in r81663-81666.

    @gustaebel gustaebel mannequin closed this as completed Jun 3, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants