[78957] trunk/base/src/registry2.0/portimage.tcl

cal at macports.org cal at macports.org
Fri May 27 16:55:08 PDT 2011


Revision: 78957
          http://trac.macports.org/changeset/78957
Author:   cal at macports.org
Date:     2011-05-27 16:55:08 -0700 (Fri, 27 May 2011)
Log Message:
-----------
wrong use of file attributes prevented non-root installations from installing packages

Modified Paths:
--------------
    trunk/base/src/registry2.0/portimage.tcl

Modified: trunk/base/src/registry2.0/portimage.tcl
===================================================================
--- trunk/base/src/registry2.0/portimage.tcl	2011-05-27 23:40:26 UTC (rev 78956)
+++ trunk/base/src/registry2.0/portimage.tcl	2011-05-27 23:55:08 UTC (rev 78957)
@@ -381,7 +381,7 @@
                     eval file attributes {$dstfile} [file attributes $srcfile]
                 } else {
                     # not root, so can't set owner/group
-                    eval file attributes {$dstfile} -permissions [file attributes -permissions $srcfile]
+                    eval file attributes {$dstfile} -permissions [file attributes $srcfile -permissions]
                 }
                 # set mtime on installed element
                 file mtime $dstfile [file mtime $srcfile]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110527/3ffe8802/attachment.html>


More information about the macports-changes mailing list