diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-07 20:22:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-07 20:22:58 +0000 |
commit | dad7c716866ca5a5fba32c78b8dd82220d72a59b (patch) | |
tree | fc1cdf0df3c0e218fa87c660885f0d8080cd108f /src/or/router.c | |
parent | 3be0bf4b88388436a680b370f0c198ffcbe1e7ee (diff) | |
download | tor-dad7c716866ca5a5fba32c78b8dd82220d72a59b.tar.gz tor-dad7c716866ca5a5fba32c78b8dd82220d72a59b.zip |
Workaround for bug on windows where cached-directories get crlf corruption.
svn:r2426
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index 032f3969e0..ba25292c9e 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -352,6 +352,7 @@ int init_keys(void) { if(!cp) { log_fn(LOG_INFO,"Cached directory %s not present. Ok.",keydir); } else { + tor_strstrip(cp,"\r"); /* XXXX Workaround for win32 read_file_to_str bug. */ if(dirserv_load_from_directory_string(cp) < 0){ log_fn(LOG_ERR, "Cached directory %s is corrupt", keydir); tor_free(cp); |