Changeset 118570


Ignore:
Timestamp:
Apr 4, 2014, 11:51:15 PM (10 years ago)
Author:
cal@…
Message:

base: reset euid when syncing with git/svn fails, closes #43202

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r118566 r118570  
    23122312                        ui_debug $::errorInfo
    23132313                        ui_error "Synchronization of the local ports tree failed doing an svn update"
     2314                        if {[getuid] == 0} {
     2315                            seteuid $euid
     2316                            setegid $egid
     2317                        }
    23142318                        incr numfailed
    23152319                        continue
     
    23422346                        ui_debug $::errorInfo
    23432347                        ui_error "Synchronization of the local ports tree failed doing a git update"
     2348                        if {[getuid] == 0} {
     2349                            seteuid $euid
     2350                            setegid $egid
     2351                        }
    23442352                        incr numfailed
    23452353                        continue
Note: See TracChangeset for help on using the changeset viewer.