diff --git a/lib/utils/filelock.py b/lib/utils/filelock.py index 58b32bcff2aacb15393ccc3a0b6e30875f1ced0e..879dfd9f14724ccf6d314d227cbd05ba37d9f7ea 100644 --- a/lib/utils/filelock.py +++ b/lib/utils/filelock.py @@ -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):