remove redundant checking for . and .. now that

tor_listdir() checks for this too.


svn:r5337
This commit is contained in:
Roger Dingledine 2005-11-01 03:50:14 +00:00
parent 1991f6cf48
commit 6dafca62f0

View File

@ -101,8 +101,6 @@ router_reload_networkstatus(void)
entries = tor_listdir(filename); entries = tor_listdir(filename);
SMARTLIST_FOREACH(entries, const char *, fn, { SMARTLIST_FOREACH(entries, const char *, fn, {
char buf[DIGEST_LEN]; char buf[DIGEST_LEN];
if (fn[0] == '.') /* skip . and .. */
continue;
if (strlen(fn) != HEX_DIGEST_LEN || if (strlen(fn) != HEX_DIGEST_LEN ||
base16_decode(buf, sizeof(buf), fn, strlen(fn))) { base16_decode(buf, sizeof(buf), fn, strlen(fn))) {
info(LD_DIR, info(LD_DIR,