From cd6243e67b4032878fae819c6ea07aa331be5faa Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 22 Sep 2004 11:41:12 +0000 Subject: [PATCH] let's pretend nothing happened --- scripts/mailman/mailman-rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mailman/mailman-rpc.py b/scripts/mailman/mailman-rpc.py index 1a813e3..7c68215 100755 --- a/scripts/mailman/mailman-rpc.py +++ b/scripts/mailman/mailman-rpc.py @@ -18,7 +18,7 @@ #* Foundation, Inc., * #* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * #*************************************************************************** -# $Id: mailman-rpc.py,v 1.25 2004-09-22 11:38:41 x2000habouzit Exp $ +# $Id: mailman-rpc.py,v 1.26 2004-09-22 11:41:12 x2000habouzit Exp $ #*************************************************************************** import base64, MySQLdb, os, getopt, sys, MySQLdb.converters @@ -413,8 +413,8 @@ uid = getpwnam(mm_cfg.MAILMAN_USER)[2] gid = getgrnam(mm_cfg.MAILMAN_GROUP)[2] if not os.getuid(): + os.setreuid(uid,uid) os.setregid(gid,gid) - os.setreuid(gid,gid) if ( os.getuid() is not uid ) or ( os.getgid() is not gid): sys.exit(0) -- 2.1.4