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

blb at macports.org blb at macports.org
Fri Feb 25 00:20:27 PST 2011


Revision: 76482
          http://trac.macports.org/changeset/76482
Author:   blb at macports.org
Date:     2011-02-25 00:20:25 -0800 (Fri, 25 Feb 2011)
Log Message:
-----------
portutil.tcl - need to note the original file's attributes prior to the
chownAsRoot call during reinplace; otherwise, files reinplace'd during destroot
get changed to $macportsuser when running port as root

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

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2011-02-25 04:54:35 UTC (rev 76481)
+++ trunk/base/src/port1.0/portutil.tcl	2011-02-25 08:20:25 UTC (rev 76482)
@@ -923,11 +923,11 @@
 
         close $tmpfd
 
+        set attributes [file attributes $file]
         # start gsoc08-privileges
         chownAsRoot $file
         # end gsoc08-privileges
 
-        set attributes [file attributes $file]
         # We need to overwrite this file
         if {[catch {file attributes $file -permissions u+w} error]} {
             global errorInfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110225/d5b11cfa/attachment.html>


More information about the macports-changes mailing list