From a45de67e3924901ac5ccaf5e3ffafe59c1624ed0 Mon Sep 17 00:00:00 2001 From: mattspatola Date: Thu, 14 Jan 2016 06:34:22 -0500 Subject: [PATCH] Fix tsocks off Currently removing only the /lib/... instead of the contents of SHLIB. --- tsocks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsocks b/tsocks index 3532c8b..0fd05c1 100755 --- a/tsocks +++ b/tsocks @@ -69,7 +69,7 @@ case "$1" in off) unset DYLD_FORCE_FLAT_NAMESPACE echo "Removing ${SHLIB} from DYLD_INSERT_LIBRARIES ..." - export DYLD_INSERT_LIBRARIES=`echo -n $DYLD_INSERT_LIBRARIES | sed 's#/lib/libtsocks\.dylib *##'` + export DYLD_INSERT_LIBRARIES=`echo -n $DYLD_INSERT_LIBRARIES | sed "s#${SHLIB//./\\.} *##"` if [ -z "$DYLD_INSERT_LIBRARIES" ] then unset DYLD_INSERT_LIBRARIES