Opened 2 years ago

#27785 new defect shouldn't use realpath

Reported by: catalyst Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: rust
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description uses the realpath command. macOS doesn't seem to have it, and POSIX doesn't specify it.

Maybe we should use something like (cd $x && pwd -P) instead for greater portability. (Though older shells and OSes might not have the -P option to pwd, it is POSIX.)

Alternatively, confirm that the current directory is a "reasonable" place to run the script from, and use relative pathnames.

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.