Opened 6 years ago

Closed 6 years ago

#4236 closed defect (fixed)

pwdx isn't available on OS X

Reported by: Sebastian Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

When starting arm and connecting to a tor process that used a relative path for torrc, arm complains it can't find the torrc:

[ARM_WARN] Unable to load torrc (querying tor's pwd failed because the pwdx call failed: 'pwdx' is unavailable)

Instead, on OS X you can use this (quite possibly something more elegant is possible too, but didn't see it in lsof's manpage at first glance):

lsof -a -p $PID -d cwd -Fn | cut -c2- | grep -v $PID

Child Tickets

Change History (1)

comment:1 Changed 6 years ago by atagar

  • Resolution set to fixed
  • Status changed from new to closed

Fantastic - thanks! If we're lucky this will help FreeBSD and OpenBSD too.
https://gitweb.torproject.org/arm.git/commitdiff/92ac1930143e51689396563877087d1070a246bd

Note: See TracTickets for help on using tickets.