[118570] trunk/base/src/macports1.0/macports.tcl

cal at macports.org cal at macports.org
Fri Apr 4 16:51:15 PDT 2014


Revision: 118570
          https://trac.macports.org/changeset/118570
Author:   cal at macports.org
Date:     2014-04-04 16:51:15 -0700 (Fri, 04 Apr 2014)
Log Message:
-----------
base: reset euid when syncing with git/svn fails, closes #43202

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2014-04-04 23:42:16 UTC (rev 118569)
+++ trunk/base/src/macports1.0/macports.tcl	2014-04-04 23:51:15 UTC (rev 118570)
@@ -2311,6 +2311,10 @@
                     } {
                         ui_debug $::errorInfo
                         ui_error "Synchronization of the local ports tree failed doing an svn update"
+                        if {[getuid] == 0} {
+                            seteuid $euid
+                            setegid $egid
+                        }
                         incr numfailed
                         continue
                     }
@@ -2341,6 +2345,10 @@
                     } {
                         ui_debug $::errorInfo
                         ui_error "Synchronization of the local ports tree failed doing a git update"
+                        if {[getuid] == 0} {
+                            seteuid $euid
+                            setegid $egid
+                        }
                         incr numfailed
                         continue
                     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140404/f0a768ae/attachment.html>


More information about the macports-changes mailing list