Skip to content

Commit 7e73fd0

Browse files
committed
Fix bogus mode mask.
1 parent 4a3a41f commit 7e73fd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/scripts/classfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def fix(filename):
137137
# First copy the file's mode to the temp file
138138
try:
139139
statbuf = posix.stat(filename)
140-
posix.chmod(tempname, statbuf[ST_MODE] & 0x7777)
140+
posix.chmod(tempname, statbuf[ST_MODE] & 07777)
141141
except posix.error, msg:
142142
err(tempname + ': warning: chmod failed (' + `msg` + ')\n')
143143
# Then make a backup of the original file as filename~

0 commit comments

Comments
 (0)