]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport of fix from 1.15 to make sure installed scripts have the read bit
authorSkip Montanaro <skip@pobox.com>
Fri, 27 Jun 2003 19:37:16 +0000 (19:37 +0000)
committerSkip Montanaro <skip@pobox.com>
Fri, 27 Jun 2003 19:37:16 +0000 (19:37 +0000)
set.

Lib/distutils/command/install_scripts.py

index d4cbaa3a0a8bfa75b8cd306f6c83191a2447dc1e..e3531a93feea1295048071d35a1f2f640332e40d 100644 (file)
@@ -50,7 +50,7 @@ class install_scripts (Command):
                 if self.dry_run:
                     self.announce("changing mode of %s" % file)
                 else:
-                    mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
+                    mode = ((os.stat(file)[ST_MODE]) | 0555) & 07777
                     self.announce("changing mode of %s to %o" % (file, mode))
                     os.chmod(file, mode)