[tor-commits] [torsocks/master] Quote the non-zero length check of $getcap.

dgoulet at torproject.org dgoulet at torproject.org
Mon Oct 17 14:07:13 UTC 2016


commit 173107baf54b71743570140026bf25073ef722fd
Author: Alexander Færøy <ahf at 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
 





More information about the tor-commits mailing list