mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix bogus mode mask.
This commit is contained in:
parent
4a3a41f1bb
commit
7e73fd0024
1 changed files with 1 additions and 1 deletions
|
@ -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~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue