瀏覽代碼

remove redundant checking for . and .. now that
tor_listdir() checks for this too.


svn:r5337

Roger Dingledine 20 年之前
父節點
當前提交
6dafca62f0
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/or/routerlist.c

+ 0 - 2
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,