Kaydet (Commit) 55430213 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

[Bug #835415] AIX can return modes that are >65536, which causes an…

[Bug #835415] AIX can return modes that are >65536, which causes an OverflowError.  Fix from Albert Chin
üst f9ea7c06
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment