[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/issue-47] torsocks will run --shell by default; add --shell
commit 4e5f35b15bcf0a28b65a480892e8ca84d5c60946
Author: Jacob Appelbaum <jacob@xxxxxxxxxxxxx>
Date: Tue Nov 6 17:28:31 2012 -0800
torsocks will run --shell by default; add --shell
---
src/torsocks.in | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/torsocks.in b/src/torsocks.in
index 94a7b8f..b42364f 100755
--- a/src/torsocks.in
+++ b/src/torsocks.in
@@ -111,6 +111,18 @@ case "$1" in
-h|-?)
echo "$0: Please see torsocks(1) or read comment at top of $0"
;;
+ --shell|shell)
+ if [ -z "$@LDPRELOAD@" ]
+ then
+ export @LDPRELOAD@="${SHLIB}"
+ else
+ echo $@LDPRELOAD@ | grep -q "${SHLIB}" || \
+ export @LDPRELOAD@="${SHLIB} $@LDPRELOAD@"
+ fi
+ export DYLD_FORCE_FLAT_NAMESPACE=1
+ echo "torsocks: new torified shell coming right up..."
+ ${SHELL:-/bin/sh}
+ ;;
*)
if [ -z "$@LDPRELOAD@" ]
then
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits