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 <rep...@bugs.python.org> <http://bugs.python.org/issue15795> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com