mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
[Bug #835415] AIX can return modes that are >65536, which causes an OverflowError. Fix from Albert Chin
This commit is contained in:
parent
f9ea7c067a
commit
55430213c5
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ class ZipFile:
|
|||
zinfo = ZipInfo(filename, date_time)
|
||||
else:
|
||||
zinfo = ZipInfo(arcname, date_time)
|
||||
zinfo.external_attr = st[0] << 16L # Unix attributes
|
||||
zinfo.external_attr = (st[0] & 0xFFFF) << 16L # Unix attributes
|
||||
if compress_type is None:
|
||||
zinfo.compress_type = self.compression
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue