[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 173107baf54b71743570140026bf25073ef722fd
Author: Alexander Færøy <ahf@xxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits