Fix umask again

This commit is contained in:
David Stainton 2015-12-08 17:54:36 +02:00 committed by Brian Warner
parent ae59b17e86
commit 0273034b0c

View File

@ -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: