Package: torsocks
Version: 1.2-3
Severity: normal
Tags: patch

At the beginning of /usr/bin/torsocks one can read:

 # There are three forms of usage for this script:
 # (1)
 # /usr/bin/torsocks program [program arguments...]
 # (2)
 # . /usr/bin/torsocks on
 # telnet www.foo.org 
 # . /usr/bin/torsocks off
 # (3)
 # The third form creates a new shell with LD_PRELOAD set and is achieved
 # simply by running the script with no arguments 
 # 
 # /usr/bin/torsocks
 #
 # When finished the user can simply terminate the shell with 'exit'

This last option does not work, because of the code at lines 76-80:

 if [ $# = 0 ] ; then
    echo "$0: insufficient arguments"
    exit
 fi

Removing these makes the third way of invocation work again.

Thanks for considering!
        dam

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages torsocks depends on:
ii  libc6  2.13-35

Versions of packages torsocks recommends:
ii  tor  0.2.3.20-rc-1

torsocks suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to