3 # This script used to call (the now deprecated) tsocks as a fallback in case
4 # torsocks wasn't installed.
5 # Now, it's just a backwards compatible shim around torsocks with reasonable
6 # behavior if -v/--verbose or -h/--help arguments are passed.
8 # Copyright (c) 2004, 2006, 2009 Peter Palfrader
9 # Modified by Jacob Appelbaum <jacob@appelbaum.net> April 16th 2006
10 # Stripped of all the tsocks cruft by ugh on February 22nd 2012
11 # May be distributed under the same terms as Tor itself
15 echo "torify is now just a wrapper around torsocks(1) for backwards compatibility."
20 echo "Usage: $0 [-hv] <command> [<options>...]"
35 case $1 in -v|
--verbose)
40 # taken from Debian's Developer's Reference, 6.4
45 if [ -x "$p/$*" ]; then
54 if pathfind torsocks
; then
56 echo "$0: Failed to exec torsocks $@" >&2
59 echo "$0: torsocks not found in your PATH. Perhaps it isn't installed? (tsocks is no longer supported, for security reasons.)" >&2