diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-19 17:32:15 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-19 17:36:17 -0500 |
commit | 1827be0bd6a400f4b5970f5b37b1d2c8e83b6a3f (patch) | |
tree | 52d404a9e3b2cfb44114e633d0913fb72563d1a4 /changes/bug7950 | |
parent | 337e32f5b8f5f3b310da20bf0135f17d06efb3ab (diff) | |
download | tor-1827be0bd6a400f4b5970f5b37b1d2c8e83b6a3f.tar.gz tor-1827be0bd6a400f4b5970f5b37b1d2c8e83b6a3f.zip |
Make a parse_config_line_from_str variant that gives error messages
Without this patch, there's no way to know what went wrong when we
fail to parse a torrc line entirely (that is, we can't turn it into
a K,V pair.) This patch introduces a new function that yields an
error message on failure, so we can at least tell the user what to
look for in their nonfunctional torrc.
(Actually, it's the same function as before with a new name:
parse_config_line_from_str is now a wrapper macro that the unit
tests use.)
Fixes bug 7950; fix on 0.2.0.16-alpha (58de695f9062576f) which first
introduced the possibility of a torrc value not parsing correctly.
Diffstat (limited to 'changes/bug7950')
-rw-r--r-- | changes/bug7950 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/changes/bug7950 b/changes/bug7950 new file mode 100644 index 0000000000..e62cca07a1 --- /dev/null +++ b/changes/bug7950 @@ -0,0 +1,4 @@ + o Minor bugfixes: + - When rejecting a configuration because we were unable to parse a + quoted string, log an actual error message. Fix for bug 7950; + bugfix on 0.2.0.16-alpha. |