Add download.umask config option with default of 077

This commit is contained in:
David Stainton
2015-12-08 03:01:19 +02:00
committed by Brian Warner
parent 623ed3516e
commit f2a7978b29
3 changed files with 6 additions and 6 deletions

View File

@ -491,8 +491,8 @@ class Client(node.Node, pollmixin.PollMixin):
dbfile = abspath_expanduser_unicode(dbfile)
from allmydata.frontends import magic_folder
s = magic_folder.MagicFolder(self, upload_dircap, collective_dircap, local_dir, dbfile)
umask = self.get_config("magic_folder", "download.umask", 0077)
s = magic_folder.MagicFolder(self, upload_dircap, collective_dircap, local_dir, dbfile, umask)
s.setServiceParent(self)
s.startService()