Kaydet (Commit) b86dd87a authored tarafından Eray Özkural's avatar Eray Özkural

* grant database read access to world by default

üst d04b07f4
......@@ -30,7 +30,7 @@ class Error(pisi.Error):
class LockedDBShelf(shelve.DBShelf):
"""A simple wrapper to implement locking for bsddb's dbshelf"""
def __init__(self, dbname, mode=0660,
def __init__(self, dbname, mode=0744,
filetype=db.DB_HASH, dbenv=None):
shelve.DBShelf.__init__(self, dbenv)
filename = os.path.join( pisi.context.config.db_dir(), dbname + '.bdb')
......@@ -46,7 +46,7 @@ class LockedDBShelf(shelve.DBShelf):
# superclass does something funky, we don't need that
pass
def open(self, filename, dbname, filetype, flags=db.DB_CREATE, mode=0660):
def open(self, filename, dbname, filetype, flags=db.DB_CREATE, mode=0744):
self.filename = filename
self.closed = False
#print 'open', filename
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment