aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/networkstatus.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-04-09 11:36:59 +1000
committerteor <teor@torproject.org>2019-04-09 11:36:59 +1000
commit3d45079c27b94f073442f80b203f9787857c2d01 (patch)
tree2e34f2b91301cb4e335922bb46ef45fc74c0cdf8 /src/feature/nodelist/networkstatus.c
parente4692fad9680ffea938dd6024ceacfc1ba1edffa (diff)
parent92e8bdf296c042ad386b2acb764bb4f4cfd2de0f (diff)
downloadtor-3d45079c27b94f073442f80b203f9787857c2d01.tar.gz
tor-3d45079c27b94f073442f80b203f9787857c2d01.zip
Merge branch 'maint-0.4.0'
Diffstat (limited to 'src/feature/nodelist/networkstatus.c')
-rw-r--r--src/feature/nodelist/networkstatus.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/feature/nodelist/networkstatus.c b/src/feature/nodelist/networkstatus.c
index ea9f12367f..ee22e16323 100644
--- a/src/feature/nodelist/networkstatus.c
+++ b/src/feature/nodelist/networkstatus.c
@@ -1761,8 +1761,11 @@ reload_consensus_from_file(const char *fname,
flavor, flags, source_dir);
#ifdef _WIN32
if (rv < 0 && tor_memstr(map->data, map->size, "\r\n")) {
- log_info(LD_GENERAL, "Found CRLF in consensus file %s; falling back to "
- "read_file_to_string.", escaped(fname));
+ log_notice(LD_GENERAL, "Looks like the above failures are probably "
+ "because of a CRLF in consensus file %s; falling back to "
+ "read_file_to_string. Nothing to worry about: this file "
+ "was probably saved by an earlier version of Tor.",
+ escaped(fname));
char *content = read_file_to_str(fname, RFTS_IGNORE_MISSING, NULL);
rv = networkstatus_set_current_consensus(content, strlen(content),
flavor, flags, source_dir);