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

[tor-commits] [torbrowser/maint-2.2] [Linux] Quote $XAUTHORITY properly



commit 60e114c5598a6c3b2615745b8c49e1a45fab8052
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
Date:   Tue Aug 23 01:46:42 2011 -0400

    [Linux] Quote $XAUTHORITY properly
    
    I would be moderately surprised if any program put a shell metacharacter
    in that variable, but it could happen.
---
 src/RelativeLink/RelativeLink.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/RelativeLink/RelativeLink.sh b/src/RelativeLink/RelativeLink.sh
index 99e5255..33961c9 100755
--- a/src/RelativeLink/RelativeLink.sh
+++ b/src/RelativeLink/RelativeLink.sh
@@ -14,7 +14,7 @@ if [ $1 ]; then
 	printf "\nDebug enabled.\n\n"
 fi
 
-if [ -z $XAUTHORITY ]; then 
+if [ -z "$XAUTHORITY" ]; then
 	XAUTHORITY=~/.Xauthority
 	export XAUTHORITY
 fi



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits