Ticket #43202: set_uid.patch

File set_uid.patch, 672 bytes (added by mojca (Mojca Miklavec), 10 years ago)

a patch to set user back to root even when svn fails

  • base/src/macports1.0/macports.tcl

     
    23272327                    } {
    23282328                        ui_debug $::errorInfo
    23292329                        ui_error "Synchronization of the local ports tree failed doing an svn update"
     2330                        if {[getuid] == 0} {
     2331                            seteuid $euid
     2332                            setegid $egid
     2333                        }
    23302334                        incr numfailed
    23312335                        continue
    23322336                    }