[or-cvs] Oct 19 13:27:24.391 [info] router_reload_networkstatus(): S...

arma at seul.org arma at seul.org
Thu Oct 20 17:22:02 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerlist.c 
Log Message:
Oct 19 13:27:24.391 [info] router_reload_networkstatus(): Skipping cached-status file with unexpected name "."
Oct 19 13:27:24.391 [info] router_reload_networkstatus(): Skipping cached-status file with unexpected name ".."


Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.349
retrieving revision 1.350
diff -u -d -r1.349 -r1.350
--- routerlist.c	19 Oct 2005 16:21:19 -0000	1.349
+++ routerlist.c	20 Oct 2005 17:22:00 -0000	1.350
@@ -101,6 +101,8 @@
   entries = tor_listdir(filename);
   SMARTLIST_FOREACH(entries, const char *, fn, {
       char buf[DIGEST_LEN];
+      if (fn[0] == '.') /* skip . and .. */
+        continue;
       if (strlen(fn) != HEX_DIGEST_LEN ||
           base16_decode(buf, sizeof(buf), fn, strlen(fn))) {
         log_fn(LOG_INFO,



More information about the tor-commits mailing list