Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201995 - net-misc/tor: /etc/tor/torrc is not used
Summary: net-misc/tor: /etc/tor/torrc is not used
Status: RESOLVED DUPLICATE of bug 56407
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-11 23:15 UTC by Faustus
Modified: 2007-12-12 08:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Faustus 2007-12-11 23:15:27 UTC
In tor version 0.1.2.17: it seems that the ebuild builds tor with default torrc being ~user/.config/torrc of the user who issued emerge, or something like that. At least, "man tor" shows this default under the "-f" option.

Thus, /etc/init.d/tor checks /etc/tor/torrc for validity, and then it is ignored. A symptom is that /var/lib/tor/.tor directory is created. I fixed this by adding 
-f ${CONFFILE} to start() in /etc/init.d/tor, but the ebuild should be probably fixed instead, so that /etc/tor/torrc is the default.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-11 23:21:37 UTC
(In reply to comment #0)
Erm...

man tor:
<snip>
-f FILE
  FILE contains further "option value" pairs. (Default: /etc/tor/torrc)
</snip>

I also don't have any /var/lib/tor/.tor and the whole thing generally works perfectly fine and honors what's the default per the above manpage.

So, if you could tell us how to reproduce the issue, that'd really help.
Comment 2 Faustus 2007-12-11 23:54:56 UTC
I have played with the source tarball, turns out that Tor's configure script uses CONFDIR environment variable if it is set.

So steps to reproduce: setenv CONFDIR to something, then emerge.

Now, it can be argued that it's not a bug, but a feature, but at least for me it caused a big non-obvious problem, since /etc/init.d/tor validates against /etc/tor/torrc explicitly.

I suggest unsetting CONFDIR in the ebuild (if it's defined).
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-12 08:15:58 UTC

*** This bug has been marked as a duplicate of bug 56407 ***