Skip to content

shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong #80145

@HFM

Description

@HFM
mannequin
BPO 35964
Nosy @Yhg1s, @tarekziade, @SpecLad, @serhiy-storchaka, @websurfer5
PRs
  • gh-80145: Exclude '.' directory when adding directories to a tar archive #13738
  • Files
  • tarfile_test.tar: reproduce the problem
  • 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 2019-02-11.12:40:46.518>
    labels = ['3.7', 'library']
    title = "shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong"
    updated_at = <Date 2019-08-27.20:46:19.371>
    user = 'https://bugs.python.org/HFM'

    bugs.python.org fields:

    activity = <Date 2019-08-27.20:46:19.371>
    actor = 'SpecLad'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-02-11.12:40:46.518>
    creator = 'HFM'
    dependencies = []
    files = ['48132']
    hgrepos = []
    issue_num = 35964
    keywords = ['patch']
    message_count = 2.0
    messages = ['335211', '344254']
    nosy_count = 10.0
    nosy_names = ['twouters', 'alanmcintyre', 'bialix', 'tarek', 'python-dev', 'SpecLad', 'serhiy.storchaka', 'HFM', 'Oskar Persson', 'Jeffrey.Kintscher']
    pr_nums = ['13738']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35964'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixes3.12only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      No status

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions