[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Stop discarding command-line arguments when TestingTorNetwork is set
commit 12594f27db7fce73db6b1e5f6f758b46265e36c7
Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
Date: Wed Mar 14 02:40:04 2012 -0400
Stop discarding command-line arguments when TestingTorNetwork is set
Discovered by Kevin Bauer. Fixes bug 5373; bugfix on 0.2.3.9-alpha,
where task 4552 added support for two layers of torrc files.
---
changes/bug5373 | 5 +++++
src/or/config.c | 7 +++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/changes/bug5373 b/changes/bug5373
new file mode 100644
index 0000000..0e1ebe8
--- /dev/null
+++ b/changes/bug5373
@@ -0,0 +1,5 @@
+ o Major bugfixes:
+ - Stop discarding command-line arguments when TestingTorNetwork
+ is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
+ 0.2.3.9-alpha, where task 4552 added support for two layers of
+ torrc files.
diff --git a/src/or/config.c b/src/or/config.c
index 3a7bf65..0c699b0 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4660,6 +4660,13 @@ options_init_from_string(const char *cf_defaults, const char *cf,
if (i==0)
newdefaultoptions = options_dup(&options_format, newoptions);
}
+ /* Assign command-line variables a second time too */
+ retval = config_assign(&options_format, newoptions,
+ global_cmdline_options, 0, 0, msg);
+ if (retval < 0) {
+ err = SETOPT_ERR_PARSE;
+ goto err;
+ }
}
/* Validate newoptions */
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits