Revision
76482
Author
blb@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

Diff

Modified: trunk/base/src/port1.0/portutil.tcl (76481 => 76482)


--- 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