[71238] trunk/base/src/port1.0/portutil.tcl

jmr at macports.org jmr at macports.org
Sun Sep 5 15:13:25 PDT 2010


Revision: 71238
          http://trac.macports.org/changeset/71238
Author:   jmr at macports.org
Date:     2010-09-05 15:13:21 -0700 (Sun, 05 Sep 2010)
Log Message:
-----------
add egid to some euid debug messages

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

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2010-09-05 21:57:16 UTC (rev 71237)
+++ trunk/base/src/port1.0/portutil.tcl	2010-09-05 22:13:21 UTC (rev 71238)
@@ -2355,12 +2355,12 @@
             # if started with sudo but have dropped the privileges
             setegid $egid
             seteuid $euid
-            ui_debug "euid changed to: [geteuid]"
+            ui_debug "euid/egid changed to: [geteuid]/[getegid]"
             chown  ${path} ${macportsuser}
             ui_debug "chowned $path to $macportsuser"
             setegid [uname_to_gid "$macportsuser"]
             seteuid [name_to_uid "$macportsuser"]
-            ui_debug "euid changed to: [geteuid]"
+            ui_debug "euid/egid changed to: [geteuid]/[getegid]"
         } else {
             # if started with sudo but have elevated back to root already
             chown  ${path} ${macportsuser}
@@ -2380,12 +2380,12 @@
             # Started as root, but not root now
             setegid $egid
             seteuid $euid
-            ui_debug "euid changed to: [geteuid]"
+            ui_debug "euid/egid changed to: [geteuid]/[getegid]"
             ui_debug "setting attributes on $file"
             eval file attributes {$file} $attributes
             setegid [uname_to_gid "$macportsuser"]
             seteuid [name_to_uid "$macportsuser"]
-            ui_debug "euid changed to: [geteuid]"
+            ui_debug "euid/egid changed to: [geteuid]/[getegid]"
         } else {
             eval file attributes {$file} $attributes
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100905/2629f1b3/attachment.html>


More information about the macports-changes mailing list