[CalendarServer-changes] [1443] CalendarServer/trunk/twistedcaldav/tap.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 3 10:28:08 PDT 2007


Revision: 1443
          http://trac.macosforge.org/projects/calendarserver/changeset/1443
Author:   cdaboo at apple.com
Date:     2007-04-03 10:28:07 -0700 (Tue, 03 Apr 2007)

Log Message:
-----------
Fix KeyError when invalid GroupName is used.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/tap.py

Modified: CalendarServer/trunk/twistedcaldav/tap.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/tap.py	2007-04-03 17:13:16 UTC (rev 1442)
+++ CalendarServer/trunk/twistedcaldav/tap.py	2007-04-03 17:28:07 UTC (rev 1443)
@@ -144,7 +144,7 @@
         if gid:
             if gid != os.getgid() and os.getgid() != 0:
                 import grp
-                groupname = grp.getgrgid(os.getuid())[0]
+                groupname = grp.getgrgid(os.getgid())[0]
                 raise UsageError("Only root can drop privileges, you are: %s"
                                  % (groupname,))
 

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


More information about the calendarserver-changes mailing list