summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-01 03:50:14 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-01 03:50:14 +0000
commit6dafca62f08414c386b242e34fbdbae21848d5e6 (patch)
treea98e8ce3e5c7d1a3bda6fcca1814fd5f7efdd071
parent1991f6cf48025719df07b6d4ab822af188dafd7f (diff)
downloadtor-6dafca62f08414c386b242e34fbdbae21848d5e6.tar.gz
tor-6dafca62f08414c386b242e34fbdbae21848d5e6.zip
remove redundant checking for . and .. now that
tor_listdir() checks for this too. svn:r5337
-rw-r--r--src/or/routerlist.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index c47d4ed055..7cb7ce0955 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -101,8 +101,6 @@ 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))) {
info(LD_DIR,