summaryrefslogtreecommitdiffstats
path: root/module/ConfigParser.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-07 22:11:27 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-07 22:11:27 +0100
commita67b1efd6ef96b9f942dfb521ede1d07eb1b0ed9 (patch)
tree1b8af90c4d2e6af2795c2f980f5206a4ea9e17d7 /module/ConfigParser.py
parentlittle fix (diff)
downloadpyload-a67b1efd6ef96b9f942dfb521ede1d07eb1b0ed9.tar.xz
closed #234
Diffstat (limited to 'module/ConfigParser.py')
-rw-r--r--module/ConfigParser.py2
1 files changed, 2 insertions, 0 deletions
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"]))