From: David Stainton Date: Tue, 8 Dec 2015 15:54:36 +0000 (+0200) Subject: Fix umask again X-Git-Url: https://git.rkrishnan.org/vdrive/%5B/%5D%20/COPYING.TGPPL.html?a=commitdiff_plain;h=11b44556fcac096fcc0130bc584a057ca36c226a;p=tahoe-lafs%2Ftahoe-lafs.git Fix umask again --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 15ebf518..8288ea6b 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -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: