mirror of https://github.com/python/cpython.git
Fix mode on scripts to have the read bit set (noted by Nicholas Riley)
This commit is contained in:
parent
b6f7959093
commit
8e30bcdaaf
|
@ -53,7 +53,7 @@ def run (self):
|
||||||
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…
Reference in New Issue