Opened 15 years ago
Last modified 6 years ago
#24687 new enhancement
port command unnecessarily requires permissions to the cwd
Reported by: | kpreid (Kevin Reid) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | base | Version: | 1.8.2 |
Keywords: | Cc: | chrstphrchvz (Christopher Chavez) | |
Port: |
Description
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.
Change History (5)
comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | kpreid@… removed |
---|
comment:2 Changed 14 years ago by kpreid (Kevin Reid)
Cc: | kpreid@… added |
---|
comment:3 Changed 12 years ago by anddam (Andrea D'Amore)
Cc: | kpreid@… removed |
---|
As reporter you don't need to add yourself to cc recipients' list.
comment:4 Changed 6 years ago by chrstphrchvz (Christopher Chavez)
This looks like #40035.
I'm not sure MacPorts supports su
instead of sudo
.
comment:5 Changed 6 years ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
Note: See
TracTickets for help on using
tickets.
Cc Me!