[53220] trunk/base/src/port1.0/portdestroot.tcl

jmr at macports.org jmr at macports.org
Wed Jul 1 02:50:47 PDT 2009


Revision: 53220
          http://trac.macports.org/changeset/53220
Author:   jmr at macports.org
Date:     2009-07-01 02:50:44 -0700 (Wed, 01 Jul 2009)
Log Message:
-----------
avoid another seteuid call when macportsuser is root

Modified Paths:
--------------
    trunk/base/src/port1.0/portdestroot.tcl

Modified: trunk/base/src/port1.0/portdestroot.tcl
===================================================================
--- trunk/base/src/port1.0/portdestroot.tcl	2009-07-01 09:01:46 UTC (rev 53219)
+++ trunk/base/src/port1.0/portdestroot.tcl	2009-07-01 09:50:44 UTC (rev 53220)
@@ -95,7 +95,7 @@
     ui_msg "$UI_PREFIX [format [msgcat::mc "Staging %s into destroot"] ${name}]"
 
     # start gsoc08-privileges
-    if { [getuid] == 0 && [geteuid] == [name_to_uid "$macportsuser"] } {
+    if { [getuid] == 0 && [geteuid] != 0 } {
     # if started with sudo but have dropped the privileges
         ui_debug "Can't run destroot under sudo without elevated privileges (due to mtree)."
         ui_debug "Run destroot without sudo to avoid root privileges."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090701/5fb2d641/attachment-0001.html>


More information about the macports-changes mailing list