Commit 2b3b41df authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

utils.filelock: Remove executable bit from lock files



There's no need for lock files to be executable.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
parent df28c49b
......@@ -73,7 +73,7 @@ class FileLock(object):
# Using "os.open" is necessary to allow both opening existing file
# read/write and creating if not existing. Vanilla "open" will truncate an
# existing file -or- allow creating if not existing.
return cls(os.fdopen(os.open(filename, os.O_RDWR | os.O_CREAT), "w+"),
return cls(os.fdopen(os.open(filename, os.O_RDWR | os.O_CREAT, 0664), "w+"),
filename)
def __del__(self):
......
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