[New-bugs-announce] [issue15795] Zipfile.extractall does not preserve file permissions
Alexey Boriskin
report at bugs.python.org
Tue Aug 28 00:36:04 CEST 2012
New submission from Alexey Boriskin:
Zipfile._extract_member does not preserve file permissions while extracting it. As may be seen at link[1], raw open() is used and no os.chmod() applied after that, therefore any permission data stored in zipfile is dropped and file is created with default permission depending on current user's umask.
[1] http://hg.python.org/cpython/file/52159aa5d401/Lib/zipfile.py#l1251
----------
components: Library (Lib)
messages: 169233
nosy: uruz
priority: normal
severity: normal
status: open
title: Zipfile.extractall does not preserve file permissions
type: behavior
versions: Python 2.7, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15795>
_______________________________________
More information about the New-bugs-announce
mailing list