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

ZipFile.writestr implies non-regular files #68164

Open
dalphus mannequin opened this issue Apr 16, 2015 · 1 comment
Open

ZipFile.writestr implies non-regular files #68164

dalphus mannequin opened this issue Apr 16, 2015 · 1 comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@dalphus
Copy link
Mannequin

dalphus mannequin commented Apr 16, 2015

BPO 23976

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 2015-04-16.20:48:40.237>
labels = ['type-bug', 'library']
title = 'ZipFile.writestr implies non-regular files'
updated_at = <Date 2015-04-16.20:48:40.237>
user = 'https://bugs.python.org/dalphus'

bugs.python.org fields:

activity = <Date 2015-04-16.20:48:40.237>
actor = 'dalphus'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2015-04-16.20:48:40.237>
creator = 'dalphus'
dependencies = []
files = []
hgrepos = []
issue_num = 23976
keywords = []
message_count = 1.0
messages = ['241274']
nosy_count = 1.0
nosy_names = ['dalphus']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue23976'
versions = ['Python 2.7']

@dalphus
Copy link
Mannequin Author

dalphus mannequin commented Apr 16, 2015

When ZipFile.writestr is called with arcname as its first parameter, it creates a ZipInfo object that has 0o0600 << 16 as its external_attr. Files created with write generally have 0o0100600 (S_IFREG is set indicating a regular file). Some archive managers (like Ark) will not populate the extracted file unless it contains this flag.

@dalphus dalphus mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Apr 16, 2015
@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
Status: No status
Development

No branches or pull requests

0 participants