]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Have zero_length_keys.sh use an empty torrc file.
authorNick Mathewson <nickm@torproject.org>
Thu, 26 Feb 2015 20:21:31 +0000 (15:21 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 26 Feb 2015 20:21:31 +0000 (15:21 -0500)
Fixes 15033; bugfix on 0.2.6.3-alpha.

changes/bug15033 [new file with mode: 0644]
src/test/zero_length_keys.sh

diff --git a/changes/bug15033 b/changes/bug15033
new file mode 100644 (file)
index 0000000..953e6c3
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (tests):
+    - When running the zero-length-keys check, do not use the default
+      torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
+      by "reezer".
index 4dea283fdb80ec6d79ca0b0fce1d9c074fd8e868..2fd11d38bd3d8e597d78deff0a7dad2a9ce3108c 100755 (executable)
@@ -36,9 +36,11 @@ if [ ! -d "$DATA_DIR" ]; then
 fi
 trap "rm -rf '$DATA_DIR'" 0
 
+touch "$DATA_DIR"/empty_torrc
+
 # DisableNetwork means that the ORPort won't actually be opened.
 # 'ExitRelay 0' suppresses a warning.
-TOR="./src/or/tor --hush --DisableNetwork 1 --ShutdownWaitLength 0 --ORPort 12345 --ExitRelay 0"
+TOR="./src/or/tor --hush --DisableNetwork 1 --ShutdownWaitLength 0 --ORPort 12345 --ExitRelay 0 -f $DATA_DIR/empty_torrc"
 
 if [ -s "$DATA_DIR"/keys/secret_id_key ] && [ -s "$DATA_DIR"/keys/secret_onion_key ] &&
    [ -s "$DATA_DIR"/keys/secret_onion_key_ntor ]; then