From: Oleg Broytman Date: Sat, 25 Jul 2015 16:58:12 +0000 (+0300) Subject: Set umask X-Git-Tag: v5.0.0~4 X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=commitdiff_plain;h=ed51875bac3a29648ad05b388c8bbf3bb3b886fe Set umask --- diff --git a/xsetbg_db.py b/xsetbg_db.py index dc23254..71055c0 100755 --- a/xsetbg_db.py +++ b/xsetbg_db.py @@ -14,6 +14,9 @@ from sqlobject import SQLObject, connectionForURI, sqlhub, \ UnicodeCol, IntCol, BoolCol, DatabaseIndex, dberrors from xsetbg_conf import xsetbg_conf +# octal; -rw-------; make the database file(s) readable only by the user +os.umask(0066) + class XSetBg(SQLObject): full_name = UnicodeCol(alternateID=True)