summaryrefslogtreecommitdiffstats
path: root/module/DatabaseBackend.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/DatabaseBackend.py
parentlittle fix (diff)
downloadpyload-a67b1efd6ef96b9f942dfb521ede1d07eb1b0ed9.tar.xz
closed #234
Diffstat (limited to 'module/DatabaseBackend.py')
-rw-r--r--module/DatabaseBackend.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/DatabaseBackend.py b/module/DatabaseBackend.py
index d74950855..1c40f270b 100644
--- a/module/DatabaseBackend.py
+++ b/module/DatabaseBackend.py
@@ -25,9 +25,10 @@ from os.path import exists
from shutil import move
from Queue import Queue
-
from traceback import print_exc
+from utils import chmod
+
try:
from pysqlite2 import dbapi2 as sqlite3
except:
@@ -112,6 +113,8 @@ class DatabaseBackend(Thread):
convert = self._checkVersion() #returns None or current version
self.conn = sqlite3.connect("files.db")
+ chmod("files.db", 0600)
+
self.c = self.conn.cursor() #compatibility
if convert is not None: