]> granicus.if.org Git - python/commitdiff
Fix mode on scripts to have the read bit set (noted by Nicholas Riley)
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 29 Nov 2002 19:45:58 +0000 (19:45 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 29 Nov 2002 19:45:58 +0000 (19:45 +0000)
Lib/distutils/command/install_scripts.py

index 6572e650d417f6efa84452f871c473da015f8cca..abe10457b666e1ccb64907a421a7d8164e56761a 100644 (file)
@@ -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)