[MacPorts] #24687: port command unnecessarily requires permissions to the cwd

MacPorts noreply at macports.org
Tue Apr 27 06:33:34 PDT 2010


#24687: port command unnecessarily requires permissions to the cwd
----------------------------+-----------------------------------------------
 Reporter:  kpreid@…        |       Owner:  macports-tickets@…                   
     Type:  enhancement     |      Status:  new                                  
 Priority:  Low             |   Milestone:                                       
Component:  base            |     Version:  1.8.2                                
 Keywords:                  |        Port:                                       
----------------------------+-----------------------------------------------
 I run MacPorts as a non-root user, so when I want to install something I
 su to the MacPorts user. Doing this in a new shell (since the cwd is ~me)
 results in the cwd being unreadable to that user. All port commands will
 then fail with the error
 {{{
 error getting working directory name: permission denied
     while executing
 "pwd"
     invoked from within
 "set current_portdir [pwd]"
     (file "/Stuff/ports/bin/port" line 3686)
 }}}
 I assume that this is due to MacPorts' support for installing a port from
 the current directory. It would be nice if it only looked at the cwd if
 it's actually been told to install from there, or if that is not possible,
 then if it would catch the error now and only complain later if the cwd is
 needed.

-- 
Ticket URL: <http://trac.macports.org/ticket/24687>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list