diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-08-28 08:36:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-08-28 08:36:00 -0400 |
commit | cc3b04a8c1edbeb1a488e319e3c0d28acd227417 (patch) | |
tree | 8a893eb08c9593e909cc5d1e9d0ca582ecad777e | |
parent | 9f9b19ed7b06d8313a9bcbd6647fa097ec0a059d (diff) | |
parent | 37a76d75dd38a1ebd45627bb6e29e40f60917188 (diff) | |
download | tor-cc3b04a8c1edbeb1a488e319e3c0d28acd227417.tar.gz tor-cc3b04a8c1edbeb1a488e319e3c0d28acd227417.zip |
Merge remote-tracking branch 'origin/maint-0.2.5'
-rw-r--r-- | changes/bug12948 | 8 | ||||
-rw-r--r-- | src/or/config.c | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/changes/bug12948 b/changes/bug12948 new file mode 100644 index 0000000000..431c0a1019 --- /dev/null +++ b/changes/bug12948 @@ -0,0 +1,8 @@ + o Major bugfixes: + - Resume expanding abbreviations for command-line options. The fix + for bug 4647 accidentally removed our hack from bug 586 that rewrote + HashedControlPassword to __HashedControlSessionPassword when it + appears on the commandline (which allowed the user to set her + own HashedControlPassword in the torrc file while the controller + generates a fresh session password for each run). Fixes bug 12948; + bugfix on 0.2.5.1-alpha. diff --git a/src/or/config.c b/src/or/config.c index 3e1eb2dc0e..7800ec1908 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1935,7 +1935,8 @@ config_parse_commandline(int argc, char **argv, int ignore_errors, } param = tor_malloc_zero(sizeof(config_line_t)); - param->key = is_cmdline ? tor_strdup(argv[i]) : tor_strdup(s); + param->key = is_cmdline ? tor_strdup(argv[i]) : + tor_strdup(config_expand_abbrev(&options_format, s, 1, 1)); param->value = arg; param->command = command; param->next = NULL; |