aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-09-08 07:16:34 +0000
committerNick Mathewson <nickm@torproject.org>2004-09-08 07:16:34 +0000
commit0ef85f6dbad170d7757b60c782d2b0df87eafb9d (patch)
tree548aaf844bde663bbad40ff7cda1350454496a7d /src/or/routerlist.c
parentc66e4c48704b8be1425c2b6253542beed49ce0eb (diff)
downloadtor-0ef85f6dbad170d7757b60c782d2b0df87eafb9d.tar.gz
tor-0ef85f6dbad170d7757b60c782d2b0df87eafb9d.zip
Some platforms have weird translations when you open files in "test" mode; make read/write_str_to_file aware.
svn:r2336
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index b7187984b9..dfd58283c2 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -60,7 +60,7 @@ int router_reload_router_list(void)
if (get_data_directory(&options)) {
char *s;
sprintf(filename,"%s/cached-directory", get_data_directory(&options));
- s = read_file_to_str(filename);
+ s = read_file_to_str(filename,0);
if (s) {
log_fn(LOG_INFO, "Loading cached directory from %s", filename);
if (router_load_routerlist_from_string(s, 0) < 0) {
@@ -693,7 +693,7 @@ int router_load_routerlist_from_file(char *routerfile, int trusted)
{
char *string;
- string = read_file_to_str(routerfile);
+ string = read_file_to_str(routerfile,0);
if(!string) {
log_fn(LOG_WARN,"Failed to load routerfile %s.",routerfile);
return -1;