[81746] trunk/dports/sysutils/cfengine/Portfile
jmr at macports.org
jmr at macports.org
Thu Aug 4 10:20:21 PDT 2011
Revision: 81746
http://trac.macports.org/changeset/81746
Author: jmr at 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110804/5e32915c/attachment.html>
More information about the macports-changes
mailing list