From 6697232456892fe51d6831647480a41efa43a95a Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Fri, 27 Jun 2003 19:37:16 +0000 Subject: [PATCH] backport of fix from 1.15 to make sure installed scripts have the read bit set. --- Lib/distutils/command/install_scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/command/install_scripts.py b/Lib/distutils/command/install_scripts.py index d4cbaa3a0a8b..e3531a93feea 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) & 07777 + mode = ((os.stat(file)[ST_MODE]) | 0555) & 07777 self.announce("changing mode of %s to %o" % (file, mode)) os.chmod(file, mode) -- 2.47.3