From: Andrew M. Kuchling Date: Fri, 29 Nov 2002 19:45:58 +0000 (+0000) Subject: Fix mode on scripts to have the read bit set (noted by Nicholas Riley) X-Git-Tag: v2.3c1~3196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e30bcdaaf1961e1c75d755b916b64fd577474bb;p=python Fix mode on scripts to have the read bit set (noted by Nicholas Riley) --- diff --git a/Lib/distutils/command/install_scripts.py b/Lib/distutils/command/install_scripts.py index 6572e650d4..abe10457b6 100644 --- a/Lib/distutils/command/install_scripts.py +++ b/Lib/distutils/command/install_scripts.py @@ -53,7 +53,7 @@ class install_scripts (Command): if self.dry_run: log.info("changing mode of %s", file) else: - mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777 + mode = ((os.stat(file)[ST_MODE]) | 0555) & 07777 log.info("changing mode of %s to %o", file, mode) os.chmod(file, mode)