[tor-commits] [tor/master] Use absolute path for datadir in test_keygen.sh

nickm at torproject.org nickm at torproject.org
Thu Sep 3 18:54:06 UTC 2015


commit 604a18e680ef139513ba630391f655fb6394eae1
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Sep 3 14:53:50 2015 -0400

    Use absolute path for datadir in test_keygen.sh
---
 src/test/test_keygen.sh |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/test/test_keygen.sh b/src/test/test_keygen.sh
index 6e852a9..917a804 100755
--- a/src/test/test_keygen.sh
+++ b/src/test/test_keygen.sh
@@ -65,6 +65,9 @@ if [ ! -d "$DATA_DIR" ]; then
 fi
 trap "rm -rf '$DATA_DIR'" 0
 
+# Use an absolute path for this or Tor will complain
+DATA_DIR=`cd "${DATA_DIR}" && pwd`
+
 touch "${DATA_DIR}/empty_torrc"
 
 QUIETLY="--hush"



More information about the tor-commits mailing list