[or-cvs] bugfixes and features: closer to making dirserv work
Roger Dingledine
arma at seul.org
Mon Sep 29 23:15:17 UTC 2003
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
log.c util.c
Log Message:
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
Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- log.c 26 Sep 2003 22:27:22 -0000 1.15
+++ log.c 29 Sep 2003 23:14:45 -0000 1.16
@@ -93,6 +93,7 @@
formatted = 1;
}
fputs(buf, lf->file);
+ /* XXX check for EOF */
}
}
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- util.c 29 Sep 2003 07:50:05 -0000 1.22
+++ util.c 29 Sep 2003 23:14:45 -0000 1.23
@@ -405,7 +405,7 @@
}
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;
}
More information about the tor-commits
mailing list