From 7ee3fb046087a4e7e2ac2f33478b35dc4627d565 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Fri, 27 Feb 2009 08:17:55 +0100 Subject: [PATCH] better_permission_to_rc_file bzr revid: fp@tinyerp.com-20090227071755-h8er3vholswc3a46 --- bin/tools/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tools/config.py b/bin/tools/config.py index e8e3e19060c..703c2fdafe6 100644 --- a/bin/tools/config.py +++ b/bin/tools/config.py @@ -346,6 +346,7 @@ class configmanager(object): os.makedirs(os.path.dirname(self.rcfile)) try: p.write(file(self.rcfile, 'w')) + os.chmod(self.rcfile, 0600) except IOError: sys.stderr.write("ERROR: couldn't write the config file\n")