[tor-bugs] #23720 [Core Tor/Tor]: 'make test' writes into my /tmp
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Oct 1 07:32:02 UTC 2017
#23720: 'make test' writes into my /tmp
------------------------------+--------------------
Reporter: arma | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+--------------------
I check out Tor from the git repo, and build it with autogen, configure,
etc.
Then I run 'make test', from the git repo directory. I ctrl-C it partway
through.
To my surprise, now there is a new directory in /tmp:
{{{
drwx------ 2 arma arma 4096 Oct 1 02:08 /tmp/tor_test_4360_xa6h7e6i
}}}
I noticed this because I found earlier tor_test directories in /tmp too,
from days or weeks ago.
Shouldn't tor be using its own tempdir somewhere? I mean, it's nice that
it tries to clean up after itself, but it does not succeed all the time.
Maybe putting the files somewhere else, which doesn't get deleted at
reboot, could be worse because then nothing would clean them up. Or maybe
putting them somewhere in this directory tree would let 'make clean' be
able to handle them?
Feel free to close with "we thought this through, and decided that
littering in /tmp was our best option". But maybe there is a better one?
:)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23720>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list