1 parent 4a3a41f commit 7e73fd0Copy full SHA for 7e73fd0
1 file changed
Tools/scripts/classfix.py
@@ -137,7 +137,7 @@ def fix(filename):
137
# First copy the file's mode to the temp file
138
try:
139
statbuf = posix.stat(filename)
140
- posix.chmod(tempname, statbuf[ST_MODE] & 0x7777)
+ posix.chmod(tempname, statbuf[ST_MODE] & 07777)
141
except posix.error, msg:
142
err(tempname + ': warning: chmod failed (' + `msg` + ')\n')
143
# Then make a backup of the original file as filename~
0 commit comments