From a67b1efd6ef96b9f942dfb521ede1d07eb1b0ed9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 7 Feb 2011 22:11:27 +0100 Subject: closed #234 --- module/ConfigParser.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/ConfigParser.py') diff --git a/module/ConfigParser.py b/module/ConfigParser.py index a8ecf6324..55db6b3e3 100644 --- a/module/ConfigParser.py +++ b/module/ConfigParser.py @@ -7,6 +7,7 @@ from os.path import join from shutil import copy from traceback import print_exc +from utils import chmod IGNORE = ("FreakshareNet", "SpeedManager") #ignore this plugin configs @@ -220,6 +221,7 @@ class ConfigParser: def saveConfig(self, config, filename): """saves config to filename""" with open(filename, "wb") as f: + chmod(filename, 0600) f.write("version: %i \n" % CONF_VERSION) for section in config.iterkeys(): f.write('\n%s - "%s":\n' % (section, config[section]["desc"])) -- cgit v1.2.3