[68954] branches/release_1_9/base/src/port1.0/portutil.tcl

jmr at macports.org jmr at macports.org
Fri Jun 18 12:01:56 PDT 2010


Revision: 68954
          http://trac.macports.org/changeset/68954
Author:   jmr at macports.org
Date:     2010-06-18 12:01:56 -0700 (Fri, 18 Jun 2010)
Log Message:
-----------
merge r68952 from trunk:
 don't drop privileges until after creating work dir (#25331)

Revision Links:
--------------
    http://trac.macports.org/changeset/68952

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

Modified: branches/release_1_9/base/src/port1.0/portutil.tcl
===================================================================
--- branches/release_1_9/base/src/port1.0/portutil.tcl	2010-06-18 19:00:59 UTC (rev 68953)
+++ branches/release_1_9/base/src/port1.0/portutil.tcl	2010-06-18 19:01:56 UTC (rev 68954)
@@ -1507,9 +1507,6 @@
     global workpath worksymlink place_worksymlink name portpath ports_ignore_older ports_dryrun
     global usealtworkpath altprefix env applications_dir portbuildpath
 
-    # de-escalate privileges if MacPorts was started with sudo
-    dropPrivileges
-
     if {$usealtworkpath} {
          ui_warn_once "privileges" "MacPorts running without privileges.\
                 You may be unable to complete certain actions (e.g. install)."
@@ -1543,6 +1540,9 @@
         }
     }
 
+    # de-escalate privileges if MacPorts was started with sudo
+    dropPrivileges
+
     # flock Portfile
     set statefile [file join $workpath .macports.${name}.state]
     if {[file exists $statefile]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100618/e791bca7/attachment.html>


More information about the macports-changes mailing list