[80797] trunk/base/src/port1.0
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jul 17 10:45:31 PDT 2011
Revision: 80797
http://trac.macports.org/changeset/80797
Author: jeremyhu at macports.org
Date: 2011-07-17 10:45:29 -0700 (Sun, 17 Jul 2011)
Log Message:
-----------
adduser: Use /usr/bin/false for shell and /var/empty for home
Modified Paths:
--------------
trunk/base/src/port1.0/portconfigure.tcl
trunk/base/src/port1.0/portutil.tcl
Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl 2011-07-17 14:37:40 UTC (rev 80796)
+++ trunk/base/src/port1.0/portconfigure.tcl 2011-07-17 17:45:29 UTC (rev 80797)
@@ -355,6 +355,8 @@
global xcodeversion macosx_deployment_target
if {$xcodeversion == "none" || $xcodeversion == ""} {
return gcc
+ } elseif {[rpm-vercomp $xcodeversion 4.2] >= 0} {
+ return clang
} elseif {[rpm-vercomp $xcodeversion 4.0] >= 0} {
return llvm-gcc-4.2
} elseif {[rpm-vercomp $xcodeversion 3.2] >= 0 && $macosx_deployment_target != "10.4"} {
Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl 2011-07-17 14:37:40 UTC (rev 80796)
+++ trunk/base/src/port1.0/portutil.tcl 2011-07-17 17:45:29 UTC (rev 80797)
@@ -2082,8 +2082,8 @@
set uid [nextuid]
set gid [existsgroup nogroup]
set realname ${name}
- set home /dev/null
- set shell /dev/null
+ set home /var/empty
+ set shell /usr/bin/false
foreach arg $args {
if {[regexp {([a-z]*)=(.*)} $arg match key val]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110717/8a05829a/attachment.html>
More information about the macports-changes
mailing list