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

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



commit 604a18e680ef139513ba630391f655fb6394eae1
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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"

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