Mercurial > p > roundup > code
diff roundup/backends/sessions_dbm.py @ 3609:f2fda3e6fc8b
umask is now configurable (with the same 0002 default)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 27 Apr 2006 04:59:37 +0000 |
| parents | 04dc3eef67b7 |
| children | 21d3d7eeea8c |
line wrap: on
line diff
--- a/roundup/backends/sessions_dbm.py Thu Apr 27 04:14:48 2006 +0000 +++ b/roundup/backends/sessions_dbm.py Thu Apr 27 04:59:37 2006 +0000 @@ -1,4 +1,4 @@ -#$Id: sessions_dbm.py,v 1.6 2006-04-27 04:03:11 richard Exp $ +#$Id: sessions_dbm.py,v 1.7 2006-04-27 04:59:37 richard Exp $ """This module defines a very basic store that's used by the CGI interface to store session and one-time-key information. @@ -19,8 +19,7 @@ def __init__(self, db): self.config = db.config self.dir = db.config.DATABASE - # ensure files are group readable and writable - os.umask(0002) + os.umask(db.config.UMASK) def exists(self, infoid): db = self.opendb('c')
