------------------------------------------------------------
revno: 1576
fixes bug: https://launchpad.net/bugs/1491187
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Tue 2015-09-01 17:10:17 -0700
message:
  Fixed bin/mailmanctl to check its effective rather than real uid.
modified:
  NEWS
  bin/mailmanctl


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'NEWS'
--- NEWS	2015-08-21 16:26:28 +0000
+++ NEWS	2015-09-02 00:10:17 +0000
@@ -20,6 +20,9 @@
 
   Bug fixes and other patches
 
+    - Fixed bin/mailmanctl to check its effective rather than real uid.
+      (LP: #1491187)
+
     - Fixed cron/gate_news to catch EOFError on opening the newsgroup.
       (LP: #1486263)
 

=== modified file 'bin/mailmanctl'
--- bin/mailmanctl	2013-06-10 21:35:21 +0000
+++ bin/mailmanctl	2015-09-02 00:10:17 +0000
@@ -288,7 +288,7 @@
     # the uid/gid.
     gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2]
     uid = pwd.getpwnam(mm_cfg.MAILMAN_USER)[2]
-    myuid = os.getuid()
+    myuid = os.geteuid()
     if myuid == 0:
         # Set the process's supplimental groups.
         groups = [x[2] for x in grp.getgrall() if mm_cfg.MAILMAN_USER in x[3]]

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to