[Checkins] SVN: zc.zope3recipes/trunk/ check the effective UID instead of the actual UID

Fred Drake cvs-admin at zope.org
Tue Feb 5 20:30:30 UTC 2013


Log message for revision 129139:
  check the effective UID instead of the actual UID

Changed:
  U   zc.zope3recipes/trunk/README.txt
  U   zc.zope3recipes/trunk/zc/zope3recipes/README.txt
  U   zc.zope3recipes/trunk/zc/zope3recipes/recipes.py

-=-
Modified: zc.zope3recipes/trunk/README.txt
===================================================================
--- zc.zope3recipes/trunk/README.txt	2013-02-05 20:25:07 UTC (rev 129138)
+++ zc.zope3recipes/trunk/README.txt	2013-02-05 20:30:30 UTC (rev 129139)
@@ -21,6 +21,13 @@
 ********
 
 ===================
+0.18.0 (2013/02/05)
+===================
+
+- For the offline recipe, check the effective UID instead of the actual UID.
+
+
+===================
 0.17.0 (2012/02/07)
 ===================
 

Modified: zc.zope3recipes/trunk/zc/zope3recipes/README.txt
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/README.txt	2013-02-05 20:25:07 UTC (rev 129138)
+++ zc.zope3recipes/trunk/zc/zope3recipes/README.txt	2013-02-05 20:30:30 UTC (rev 129139)
@@ -2797,7 +2797,7 @@
     <BLANKLINE>
     if None:
         import pwd
-        if pwd.getpwnam(None).pw_uid != os.getuid():
+        if pwd.getpwnam(None).pw_uid != os.geteuid():
             restart = True
             argv[:0] = ["sudo", "-u", None]
             # print "switching to user", None
@@ -2919,7 +2919,7 @@
     <BLANKLINE>
     if None:
         import pwd
-        if pwd.getpwnam(None).pw_uid != os.getuid():
+        if pwd.getpwnam(None).pw_uid != os.geteuid():
             restart = True
             argv[:0] = ["sudo", "-u", None]
             # print "switching to user", None
@@ -3043,7 +3043,7 @@
     <BLANKLINE>
     if None:
         import pwd
-        if pwd.getpwnam(None).pw_uid != os.getuid():
+        if pwd.getpwnam(None).pw_uid != os.geteuid():
             restart = True
             argv[:0] = ["sudo", "-u", None]
             # print "switching to user", None

Modified: zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/recipes.py	2013-02-05 20:25:07 UTC (rev 129138)
+++ zc.zope3recipes/trunk/zc/zope3recipes/recipes.py	2013-02-05 20:30:30 UTC (rev 129139)
@@ -765,7 +765,7 @@
 
 if %(user)r:
     import pwd
-    if pwd.getpwnam(%(user)r).pw_uid != os.getuid():
+    if pwd.getpwnam(%(user)r).pw_uid != os.geteuid():
         restart = True
         argv[:0] = ["sudo", "-u", %(user)r]
         # print "switching to user", %(user)r



More information about the checkins mailing list