diff options
author | Roger Dingledine <arma@torproject.org> | 2012-03-14 02:40:04 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2012-03-14 02:40:04 -0400 |
commit | 12594f27db7fce73db6b1e5f6f758b46265e36c7 (patch) | |
tree | 8b5165bcb5e686f83999dc72032928d554564c68 | |
parent | 279f03e76f3f7c7ecf029334afe2de9b6f9b20a9 (diff) | |
download | tor-12594f27db7fce73db6b1e5f6f758b46265e36c7.tar.gz tor-12594f27db7fce73db6b1e5f6f758b46265e36c7.zip |
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.
-rw-r--r-- | changes/bug5373 | 5 | ||||
-rw-r--r-- | 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 0000000000..0e1ebe8511 --- /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 3a7bf65e37..0c699b021d 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 */ |