]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use absolute path for datadir in test_keygen.sh
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Sep 2015 18:53:50 +0000 (14:53 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 3 Sep 2015 18:53:50 +0000 (14:53 -0400)
src/test/test_keygen.sh

index 6e852a9a58ae81d767209e289301cf2733cec4d9..917a8042cc5f83d6ebe618a178e91a734c5ae2fa 100755 (executable)
@@ -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"