[New-bugs-announce] [issue23976] ZipFile.writestr implies non-regular files

D. Alphus report at bugs.python.org
Thu Apr 16 22:48:40 CEST 2015

New submission from D. Alphus:

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.

components: Library (Lib)
messages: 241274
nosy: dalphus
priority: normal
severity: normal
status: open
title: ZipFile.writestr implies non-regular files
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list