[80443] trunk/base/src/port1.0/portclean.tcl

jmr at macports.org jmr at macports.org
Wed Jul 13 02:56:58 PDT 2011


Revision: 80443
          http://trac.macports.org/changeset/80443
Author:   jmr at macports.org
Date:     2011-07-13 02:56:58 -0700 (Wed, 13 Jul 2011)
Log Message:
-----------
only require root privileges in portclean if started as root

Modified Paths:
--------------
    trunk/base/src/port1.0/portclean.tcl

Modified: trunk/base/src/port1.0/portclean.tcl
===================================================================
--- trunk/base/src/port1.0/portclean.tcl	2011-07-13 08:47:58 UTC (rev 80442)
+++ trunk/base/src/port1.0/portclean.tcl	2011-07-13 09:56:58 UTC (rev 80443)
@@ -55,7 +55,7 @@
 
     ui_notice "$UI_PREFIX [format [msgcat::mc "Cleaning %s"] [option subport]]"
 
-    if {![file writable $prefix] || ([getuid] == 0 && [geteuid] != 0)} {
+    if {[getuid] == 0 && [geteuid] != 0} {
         elevateToRoot "clean"
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110713/dbf08d73/attachment.html>


More information about the macports-changes mailing list