[CalendarServer-changes] [4305] CalendarServer/trunk/calendarserver/tools/principals.py

source_changes at macosforge.org source_changes at macosforge.org
Wed May 20 10:44:09 PDT 2009


Revision: 4305
          http://trac.macosforge.org/projects/calendarserver/changeset/4305
Author:   sagen at apple.com
Date:     2009-05-20 10:44:08 -0700 (Wed, 20 May 2009)
Log Message:
-----------
Set umask so db files get created with appropriate permissions

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/principals.py

Modified: CalendarServer/trunk/calendarserver/tools/principals.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/principals.py	2009-05-20 16:23:22 UTC (rev 4304)
+++ CalendarServer/trunk/calendarserver/tools/principals.py	2009-05-20 17:44:08 UTC (rev 4305)
@@ -200,6 +200,8 @@
             gid = getgrnam(config.GroupName).gr_gid
             switchUID(uid, uid, gid)
 
+        os.umask(config.umask)
+
         config.directory = getDirectory()
         autoDisableMemcached(config)
     except ConfigurationError, e:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090520/ed43412c/attachment.html>


More information about the calendarserver-changes mailing list