From 6dafca62f08414c386b242e34fbdbae21848d5e6 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 1 Nov 2005 03:50:14 +0000 Subject: [PATCH] remove redundant checking for . and .. now that tor_listdir() checks for this too. svn:r5337 --- src/or/routerlist.c | 2 -- 1 file changed, 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,