Bug 32591

Summary: Не работает torsocks on
Product: Sisyphus Reporter: Evgenii Terechkov <evg>
Component: torsocksAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: vladimir.didenko
Version: unstable   
Hardware: all   
OS: Linux   

Description Evgenii Terechkov 2016-10-08 06:44:17 MSK
Не работает функционал включения torsocks в текущем шелле (в данном случае zsh):

=8<======================================================================
evg@thinkpad ~ $torsocks show
LD_PRELOAD=""
evg@thinkpad ~ $torsocks on  
Tor mode activated. Every command will be torified for this shell.
evg@thinkpad ~ $torsocks show
LD_PRELOAD=""
evg@thinkpad ~ $env|grep LD_PRE
[1]    15653 done       env | 
       15654 exit 1     grep LD_PRE
=8<======================================================================

при этом вызов отдельных команд через torsocks и torsocks --shell - работают.
Comment 1 Владимир Диденко 2016-10-08 08:36:04 MSK
torsocks on и не должен так работать. Нужно делать source для скрипта torsocks.

Из мана

on | off - This  option  adds  or  removes torsocks(8) from the LD_PRELOAD environment variable for the current shell. If you want to use this option, you HAVE to source torsocks from your shell.

Add the torsocks library to LD_PRELOAD
    $ . torsocks on
Remove the torsocks library from LD_PRELOAD
    $ . torsocks off
Comment 2 Evgenii Terechkov 2016-10-08 09:54:23 MSK
Спасибо. Читал ман, но видимо неправильно понял.