Only read magic-folder config from config reader

Also, fix the umask feature which was completely broken previously due
to failure to parse the umask string into an integer.
This commit is contained in:
Jean-Paul Calderone
2018-04-20 15:11:55 -04:00
parent 0bdabacce3
commit ac6269dd2d
3 changed files with 34 additions and 1 deletions

View File

@ -606,7 +606,7 @@ class _Client(node.Node, pollmixin.PollMixin):
collective_dircap=mf_config["collective_dircap"],
local_path_u=abspath_expanduser_unicode(local_dir_config, base=self.basedir),
dbfile=abspath_expanduser_unicode(db_filename),
umask=self.get_config("magic_folder", "download.umask", 0077),
umask=mf_config["umask"],
name=name,
downloader_delay=poll_interval,
)