Explorar o código

Use absolute path for datadir in test_keygen.sh

Nick Mathewson %!s(int64=8) %!d(string=hai) anos
pai
achega
604a18e680
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/test/test_keygen.sh

+ 3 - 0
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"