Commit 0912c10b authored by Guido van Rossum's avatar Guido van Rossum

Fix bogus mode mask.

parent 44f92d7c
......@@ -137,7 +137,7 @@ def fix(filename):
# First copy the file's mode to the temp file
try:
statbuf = posix.stat(filename)
posix.chmod(tempname, statbuf[ST_MODE] & 0x7777)
posix.chmod(tempname, statbuf[ST_MODE] & 07777)
except posix.error, msg:
err(tempname + ': warning: chmod failed (' + `msg` + ')\n')
# Then make a backup of the original file as filename~
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment