[CalendarServer-changes] [980] CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/tap.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 8 15:28:11 PST 2007


Revision: 980
          http://trac.macosforge.org/projects/calendarserver/changeset/980
Author:   dreid at apple.com
Date:     2007-01-08 15:28:10 -0800 (Mon, 08 Jan 2007)

Log Message:
-----------
make sure the Sudoer's file exists before we try to add it.

Modified Paths:
--------------
    CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/tap.py

Modified: CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/tap.py
===================================================================
--- CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/tap.py	2007-01-08 23:26:55 UTC (rev 979)
+++ CalendarServer/branches/users/dreid/sudoers-2/twistedcaldav/tap.py	2007-01-08 23:28:10 UTC (rev 980)
@@ -139,7 +139,7 @@
 
         sudoDirectory = None
 
-        if config.SudoersFile:
+        if config.SudoersFile and os.path.exists(config.SudoersFile):
             sudoDirectory = SudoDirectoryService(config.SudoersFile)
             sudoDirectory.realmName = baseDirectory.realmName
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070108/bf543b8f/attachment.html


More information about the calendarserver-changes mailing list