commit 173107baf54b71743570140026bf25073ef722fd Author: Alexander Færøy ahf@0x90.dk Date: Sun Oct 16 20:48:00 2016 +0200
Quote the non-zero length check of $getcap. --- src/bin/torsocks.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/torsocks.in b/src/bin/torsocks.in index b030ad2..7288337 100644 --- a/src/bin/torsocks.in +++ b/src/bin/torsocks.in @@ -108,7 +108,7 @@ torify_app ()
# This must be before torifying because getcap uses cap_get_file(3) # via syscall(2) which breaks torsocks. - if [ -n $getcap ]; then + if [ -n "$getcap" ]; then caps=`$getcap $app_path` fi
tor-commits@lists.torproject.org