diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-06-28 15:47:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-06-28 15:47:07 -0400 |
commit | e13e9c40c829d15fb71310b0638fff859b85580a (patch) | |
tree | 0697ba12dba31d2de37163864e202fd7edeca130 /src/test | |
parent | 1e008e98767fb1b98142a4099a837bbb2ce818f4 (diff) | |
download | tor-e13e9c40c829d15fb71310b0638fff859b85580a.tar tor-e13e9c40c829d15fb71310b0638fff859b85580a.tar.gz |
Never emit the "opt" prefix in any directory stuff
Fix for bug 5124.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 83c612045..84705d0e0 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -147,9 +147,9 @@ test_dir_formats(void) "platform Tor "VERSION" on ", sizeof(buf2)); strlcat(buf2, get_uname(), sizeof(buf2)); strlcat(buf2, "\n" - "opt protocols Link 1 2 Circuit 1\n" + "protocols Link 1 2 Circuit 1\n" "published 1970-01-01 00:00:00\n" - "opt fingerprint ", sizeof(buf2)); + "fingerprint ", sizeof(buf2)); test_assert(!crypto_pk_get_fingerprint(pk2, fingerprint, 1)); strlcat(buf2, fingerprint, sizeof(buf2)); strlcat(buf2, "\nuptime 0\n" @@ -161,7 +161,7 @@ test_dir_formats(void) strlcat(buf2, pk1_str, sizeof(buf2)); strlcat(buf2, "signing-key\n", sizeof(buf2)); strlcat(buf2, pk2_str, sizeof(buf2)); - strlcat(buf2, "opt hidden-service-dir\n", sizeof(buf2)); + strlcat(buf2, "hidden-service-dir\n", sizeof(buf2)); strlcat(buf2, "reject *:*\nrouter-signature\n", sizeof(buf2)); buf[strlen(buf2)] = '\0'; /* Don't compare the sig; it's never the same * twice */ |