mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
Fix umask again
This commit is contained in:
parent
ae59b17e86
commit
0273034b0c
@ -485,8 +485,8 @@ class WriteFileMixin(object):
|
||||
# ensure parent directory exists
|
||||
head, tail = os.path.split(abspath_u)
|
||||
|
||||
old_mask = os.umask(self._umask)
|
||||
try:
|
||||
old_mask = os.umask(self._umask)
|
||||
fileutil.make_dirs(head, (~ self._umask) & 0777)
|
||||
fileutil.write(replacement_path_u, file_contents)
|
||||
finally:
|
||||
|
Loading…
x
Reference in New Issue
Block a user