projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a2677
)
Fix umask again
author
David Stainton
<dstainton415@gmail.com>
Tue, 8 Dec 2015 15:54:36 +0000
(17:54 +0200)
committer
Daira Hopwood
<daira@jacaranda.org>
Mon, 28 Dec 2015 16:18:55 +0000
(16:18 +0000)
src/allmydata/frontends/magic_folder.py
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 15ebf518aaff298210a752da4712c2a8d8c57cd3..8288ea6b6de7e9b774d70436ebb88f87354612fd 100644
(file)
--- 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: