better_permission_to_rc_file
bzr revid: fp@tinyerp.com-20090227071755-h8er3vholswc3a46
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user