From a67b1efd6ef96b9f942dfb521ede1d07eb1b0ed9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 7 Feb 2011 22:11:27 +0100 Subject: closed #234 --- module/DatabaseBackend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/DatabaseBackend.py') 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: -- cgit v1.2.3