[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Fix exception when warning about group-writable directo...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv9700/lib/mixminion

Modified Files:
	Common.py 
Log Message:
Fix exception when warning about group-writable directories

Index: Common.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Common.py,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- Common.py	28 Aug 2003 01:40:07 -0000	1.107
+++ Common.py	28 Aug 2003 08:39:21 -0000	1.108
@@ -469,8 +469,7 @@
         if _CHECK_MODE and (mode & 020) and not (mode & stat.S_ISVTX):
             # FFFF We may want to give an even stronger error here.
             if _CHECK_GID and not _WARNED_DIRECTORIES.has_key(d):
-                group = grp.getgrgid(st[stat.ST_GID])[0]
-                groupName = _gidToName(group)
+                groupName = _gidToName(st[stat.ST_GID])
                 LOG.warn("Directory %s is writable by group %s (mode %o)",
                          d, groupName, mode&0777)
                 _WARNED_DIRECTORIES[d] = 1