Revision: 81746 http://trac.macports.org/changeset/81746 Author: jmr@macports.org Date: 2011-08-04 10:20:21 -0700 (Thu, 04 Aug 2011) Log Message: ----------- cfengine: fix root privileges check not to rely on env(USER) Modified Paths: -------------- trunk/dports/sysutils/cfengine/Portfile Modified: trunk/dports/sysutils/cfengine/Portfile =================================================================== --- trunk/dports/sysutils/cfengine/Portfile 2011-08-04 17:16:41 UTC (rev 81745) +++ trunk/dports/sysutils/cfengine/Portfile 2011-08-04 17:20:21 UTC (rev 81746) @@ -47,7 +47,7 @@ destroot.args ps_DATA= pre-destroot { - if {$env(USER) != "root"} { + if {[geteuid] != 0} { ui_msg "-----------------------------------------------------------" ui_msg "Note that you are not running as root, so files installed" ui_msg "by this port will not end up with proper ownership and"
participants (1)
-
jmr@macports.org