From 369975ab6d7c45916e0e2739eb5449879c32b6f8 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 19 Mar 2010 14:07:00 -0400 Subject: Ensure the SSSDConfig creates sssd.conf with the correct mode --- src/config/SSSDConfig.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config/SSSDConfig.py') diff --git a/src/config/SSSDConfig.py b/src/config/SSSDConfig.py index d073a683..84af11bf 100644 --- a/src/config/SSSDConfig.py +++ b/src/config/SSSDConfig.py @@ -1194,10 +1194,12 @@ class SSSDConfig(SSSDChangeConf): outputfile = self.configfile # open() will raise IOError if it fails + old_umask = os.umask(0177) of = open(outputfile, "wb") output = self.dump(self.opts) of.write(output) of.close() + os.umask(old_umask) def list_services(self): """ -- cgit