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 ".."


svn:r5291
This commit is contained in:
Roger Dingledine
2005-10-20 17:22:00 +00:00
parent 52eaccce44
commit d6dcd973c3
+2
View File
@@ -101,6 +101,8 @@ router_reload_networkstatus(void)
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,