aboutsummaryrefslogtreecommitdiff
path: root/net/tsocks/files/patch-tsocks
blob: ee7b7441bf33be1f96e18a13e1b6623f9175dc96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- tsocks.orig	2002-03-16 10:27:18 UTC
+++ tsocks
@@ -53,7 +53,7 @@ case "$1" in
 		fi
 	;;
 	off)
-		export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib\/libtsocks.so \?//'`
+		export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's|/usr/lib/libtsocks.so[[:blank:]]*||'`
 		if [ -z "$LD_PRELOAD" ]
 			then
 				unset LD_PRELOAD