On May 13, 2007, at 5:52 PM, Randall Wood wrote:
Don't you need to create ~/.macports with rwe (700), so that the user can at least cd into it and edit preference files in it?
;) Why yes. James
On 13 May 2007, at 20:20, source_changes@macosforge.org wrote:
Revision 25098 Author jberry@macports.org Date 2007-05-13 17:20:27 -0700 (Sun, 13 May 2007) Log MessageIf we need to create ~/.macports, create it as 600, with ownership of the enclosing directory.Modified Paths trunk/base/src/darwinports1.0/darwinports.tcl Diff Modified: trunk/base/src/darwinports1.0/darwinports.tcl (25097 => 25098)--- trunk/base/src/darwinports1.0/darwinports.tcl 2007-05-14 00:09:58 UTC (rev 25097) +++ trunk/base/src/darwinports1.0/ darwinports.tcl 2007-05-14 00:20:27 UTC (rev 25098) @@ -224,6 +224,7 @@ } } + proc dportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} { if {$up_ui_options eq ""} { array set ui_options {} @@ -269,7 +270,12 @@ # Ensure that the macports user directory exists set darwinports::macports_user_dir [file normalize $darwinports::autoconf::macports_user_dir] - file mkdir $macports_user_dir + if { ![file exists $macports_user_dir] } { + # If not, create it with ownership of the enclosing directory, rw 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] + } # Configure the search path for configuration files set conf_files "" _______________________________________________ macports-changes mailing list macports-changes@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-changes
Randall Wood rhwood@mac.com http://shyramblings.blogspot.com
"The rules are simple: The ball is round. The game lasts 90 minutes. All the rest is just philosophy."
_______________________________________________ macports-changes mailing list macports-changes@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-changes