[CalendarServer-changes] [1422] CalendarServer/trunk/twistedcaldav
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 23 17:44:26 PDT 2007
Revision: 1422
http://trac.macosforge.org/projects/calendarserver/changeset/1422
Author: wsanchez at apple.com
Date: 2007-03-23 17:44:26 -0700 (Fri, 23 Mar 2007)
Log Message:
-----------
Make umask configurable
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/config.py
CalendarServer/trunk/twistedcaldav/tap.py
Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/config.py 2007-03-23 18:08:01 UTC (rev 1421)
+++ CalendarServer/trunk/twistedcaldav/config.py 2007-03-24 00:44:26 UTC (rev 1422)
@@ -159,6 +159,9 @@
"pydir": "/usr/share/caldavd/bin/pydir.py",
"ConfigFile": "/etc/caldavd/pydir.xml",
},
+
+ # Umask
+ "umask": 0027,
}
class Config (object):
Modified: CalendarServer/trunk/twistedcaldav/tap.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/tap.py 2007-03-23 18:08:01 UTC (rev 1421)
+++ CalendarServer/trunk/twistedcaldav/tap.py 2007-03-24 00:44:26 UTC (rev 1422)
@@ -187,12 +187,12 @@
if not config.ErrorLogFile and config.ProcessType == 'Slave':
log.FileLogObserver.timeFormat = ''
-
+
# Check current umask and warn if changed
- oldmask = os.umask(0027)
- if oldmask != 0027:
+ oldmask = os.umask(config.umask)
+ if oldmask != config.umask:
log.msg("WARNING: changing umask from: 0%03o to 0%03o" % (
- oldmask, 0027,))
+ oldmask, config.umask,))
def checkDirectory(self, dirpath, description, access=None, fail=False, permissions=None, uname=None, gname=None):
if not os.path.exists(dirpath):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070323/d107725b/attachment.html
More information about the calendarserver-changes
mailing list