Commit 6dafca62 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

remove redundant checking for . and .. now that

tor_listdir() checks for this too.


svn:r5337
parent 1991f6cf
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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,