Commits

Jonathan Lange  committed 2f489b4

Guard the chmod in case external_attr is 0.

  • Participants
  • Parent commits 356a803

Comments (0)

Files changed (1)

File setuptools/archive_util.py

                 finally:
                     f.close()
                     del data
-            os.chmod(target, info.external_attr >> 16)
+            unix_attributes = info.external_attr >> 16
+            if unix_attributes:
+                os.chmod(target, unix_attributes)
     finally:
         z.close()