diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2009-02-27 08:17:55 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2009-02-27 08:17:55 +0100 |
| commit | 7ee3fb046087a4e7e2ac2f33478b35dc4627d565 (patch) | |
| tree | 3fcc47eac04ba10601d37aaeba27e9733a33c2f1 /bin/tools/config.py | |
| parent | 5a87d64cb310f155c104937df425dc9b4cf03e7e (diff) | |
better_permission_to_rc_file
bzr revid: fp@tinyerp.com-20090227071755-h8er3vholswc3a46
Diffstat (limited to 'bin/tools/config.py')
| -rw-r--r-- | bin/tools/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
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") |
