Fix mode on scripts to have the read bit set (noted by Nicholas Riley)

This commit is contained in:
Andrew M. Kuchling 2002-11-29 19:45:58 +00:00
parent b6f7959093
commit 8e30bcdaaf
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def run (self):
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)