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

erinn at torproject.org erinn at torproject.org
Sun Oct 23 23:18:56 UTC 2011


commit 60e114c5598a6c3b2615745b8c49e1a45fab8052
Author: Robert Ransom <rransom.8774 at gmail.com>
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





More information about the tor-commits mailing list