summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/install_scripts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/install_scripts.py b/Lib/distutils/command/install_scripts.py
index 3bc23e7..d4cbaa3 100644
--- a/Lib/distutils/command/install_scripts.py
+++ b/Lib/distutils/command/install_scripts.py
@@ -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
+ mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
self.announce("changing mode of %s to %o" % (file, mode))
os.chmod(file, mode)