From a6910583b4f52483f7438cd4c555816eb724e6cb Mon Sep 17 00:00:00 2001 From: David Stainton Date: Tue, 8 Dec 2015 17:54:36 +0200 Subject: [PATCH] Fix umask again --- src/allmydata/frontends/magic_folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.37.2