diff options
author | Roger Dingledine <arma@torproject.org> | 2003-09-29 23:14:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-09-29 23:14:49 +0000 |
commit | 3ed7aedc11d85bde5d4da3f7d1a6bdadc037ac75 (patch) | |
tree | cd6ce1b1bb3c0bdd92485ee4315eafcab549bbf6 /src/common | |
parent | 467d278b8b00740e876ae5ba9e0798ad702b5a67 (diff) | |
download | tor-3ed7aedc11d85bde5d4da3f7d1a6bdadc037ac75.tar.gz tor-3ed7aedc11d85bde5d4da3f7d1a6bdadc037ac75.zip |
bugfixes and features: closer to making dirserv work
fix a variety of seg faults
don't try to list OPs in running-routers
write cached-directory to disk when rebuilding the dir
on boot, dirservers load approved-routers file
on boot, dirservers load cached directory file
svn:r508
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/log.c | 1 | ||||
-rw-r--r-- | src/common/util.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c index f117b877e2..09f83d08f2 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -93,6 +93,7 @@ logv(int severity, const char *funcname, const char *format, va_list ap) formatted = 1; } fputs(buf, lf->file); + /* XXX check for EOF */ } } diff --git a/src/common/util.c b/src/common/util.c index 7b14039b6d..5cb2eb6de4 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -405,7 +405,7 @@ char *read_file_to_str(const char *filename) { } if(stat(filename, &statbuf) < 0) { - log_fn(LOG_WARNING,"Could not stat %s.",filename); + log_fn(LOG_INFO,"Could not stat %s.",filename); return NULL; } |