From: Skip Montanaro Date: Fri, 27 Jun 2003 19:37:16 +0000 (+0000) Subject: backport of fix from 1.15 to make sure installed scripts have the read bit X-Git-Tag: 2.2~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6697232456892fe51d6831647480a41efa43a95a;p=thirdparty%2FPython%2Fcpython.git backport of fix from 1.15 to make sure installed scripts have the read bit set. --- 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)