Update of /cvsroot/mailman/mailman/contrib
In directory sc8-pr-cvs1:/tmp/cvs-serv9830/contrib
Modified Files:
Tag: Release_2_1-maint
check_perms_grsecurity.py
Log Message:
Backporting various fixes and improvements from the trunk.
Index: check_perms_grsecurity.py
===================================================================
RCS file: /cvsroot/mailman/mailman/contrib/check_perms_grsecurity.py,v
retrieving revision 2.3
retrieving revision 2.3.2.1
diff -u -d -r2.3 -r2.3.2.1
--- check_perms_grsecurity.py 23 Aug 2002 20:37:30 -0000 2.3
+++ check_perms_grsecurity.py 31 Mar 2003 20:18:43 -0000 2.3.2.1
@@ -1,6 +1,6 @@
#! @PYTHON@
#
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -77,9 +77,10 @@
sys.exit(1)
print "Making select directories owned and writable by root only"
+ gid = grp.getgrnam(MAILMAN_GROUP)[2]
for dir in dirstochownroot:
dirpath = paths.prefix + '/' + dir
- os.chown(dirpath, 0, MAILMAN_GID)
+ os.chown(dirpath, 0, gid)
os.chmod(dirpath, 02755)
print dirpath
@@ -162,10 +163,10 @@
file.insert(i,
object.group(1) + "CheckFixUid.CheckFixUid()\n")
patched=1
- break
+ break
if object2:
print "Patching " + script
- file.insert(i,
+ file.insert(i,
object2.group(1) + "CheckFixUid.CheckFixUid()\n")
patched=1
break
@@ -176,5 +177,5 @@
else:
filefd=open(script, "w")
filefd.writelines(file)
-
+
main(sys.argv)
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins