[43957] trunk/base/src/macports1.0/macports.tcl
toby at macports.org
toby at macports.org
Thu Dec 18 00:25:49 PST 2008
Revision: 43957
http://trac.macports.org/changeset/43957
Author: toby at macports.org
Date: 2008-12-18 00:25:48 -0800 (Thu, 18 Dec 2008)
Log Message:
-----------
don't create ~/.macports - it doesn't need restrictive permissions, and creating an empty directory for no reason is lame
Modified Paths:
--------------
trunk/base/src/macports1.0/macports.tcl
Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl 2008-12-18 08:10:28 UTC (rev 43956)
+++ trunk/base/src/macports1.0/macports.tcl 2008-12-18 08:25:48 UTC (rev 43957)
@@ -356,13 +356,6 @@
# Ensure that the macports user directory exists if HOME is defined
if {[info exists env(HOME)]} {
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, rwx by the user only
- file mkdir $macports_user_dir
- file attributes $macports_user_dir -permissions u=rwx,go= \
- -owner [file attributes $macports_user_dir/.. -owner] \
- -group [file attributes $macports_user_dir/.. -group]
- }
} else {
# Otherwise define the user directory as a direcotory that will never exist
set macports::macports_user_dir "/dev/null/NO_HOME_DIR"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081218/bc984156/attachment.html>
More information about the macports-changes
mailing list