mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Fix mode on scripts to have the read bit set (noted by Nicholas Riley)
This commit is contained in:
parent
b6f7959093
commit
8e30bcdaaf
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class install_scripts (Command):
|
||||||
if self.dry_run:
|
if self.dry_run:
|
||||||
log.info("changing mode of %s", file)
|
log.info("changing mode of %s", file)
|
||||||
else:
|
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)
|
log.info("changing mode of %s to %o", file, mode)
|
||||||
os.chmod(file, mode)
|
os.chmod(file, mode)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue