[25432] branches/dp2mp-move/base/src/macports1.0/macports.tcl

source_changes at macosforge.org source_changes at macosforge.org
Mon May 21 22:17:42 PDT 2007


Revision: 25432
          http://trac.macosforge.org/projects/macports/changeset/25432
Author:   jmpp at macports.org
Date:     2007-05-21 22:17:41 -0700 (Mon, 21 May 2007)

Log Message:
-----------
Merging eridius' r25102: Make the .macports dir executable by user as well, and set the group too.

Modified Paths:
--------------
    branches/dp2mp-move/base/src/macports1.0/macports.tcl

Modified: branches/dp2mp-move/base/src/macports1.0/macports.tcl
===================================================================
--- branches/dp2mp-move/base/src/macports1.0/macports.tcl	2007-05-22 05:14:17 UTC (rev 25431)
+++ branches/dp2mp-move/base/src/macports1.0/macports.tcl	2007-05-22 05:17:41 UTC (rev 25432)
@@ -283,10 +283,11 @@
         # Ensure that the macports user directory exists
         set macports::macports_user_dir [file normalize $macports::autoconf::macports_user_dir]
         if { ![file exists $macports_user_dir] } {
-	    # If not, create it with ownership of the enclosing directory, rw by the user only
+	    # If not, create it with ownership of the enclosing directory, rwx by the user only
 	    file mkdir $macports_user_dir
-	    file attributes $macports_user_dir -permissions u=rw,go=
-	    file attributes $macports_user_dir -owner [file attributes "$macports_user_dir/.." -owner]
+	    file attributes $macports_user_dir -permissions u=rwx,go= \
+		-owner [file attributes $macports_user_dir/.. -owner] \
+		-group [file attributes $macports_user_dir/.. -group]
 	}
    	
    	# Configure the search path for configuration files

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070521/ada2a2cf/attachment.html


More information about the macports-changes mailing list