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

jmr at macports.org jmr at macports.org
Fri Jun 18 11:53:39 PDT 2010


Revision: 68952
          http://trac.macports.org/changeset/68952
Author:   jmr at macports.org
Date:     2010-06-18 11:53:36 -0700 (Fri, 18 Jun 2010)
Log Message:
-----------
don't drop privileges until after creating work dir (#25331)

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-06-18 16:17:16 UTC (rev 68951)
+++ trunk/base/src/port1.0/portutil.tcl	2010-06-18 18:53:36 UTC (rev 68952)
@@ -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/5b02f28d/attachment.html>


More information about the macports-changes mailing list