Commit 5dcc6fd8 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

ok ok the stat wasn't redundant

but the warn was


svn:r2852
parent f595ee9a
Loading
Loading
Loading
Loading
+2 −0
Changes for src/or/routerlist.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -47,11 +47,13 @@ int router_reload_router_list(void)
{
  char filename[512];
  int is_recent;
  struct stat st;
  char *s;
  tor_assert(get_options()->DataDirectory);

  tor_snprintf(filename,sizeof(filename),"%s/cached-directory",
               get_options()->DataDirectory);
  stat(filename, &st); /* ignore return value; if s is true below, it worked */
  s = read_file_to_str(filename,0);
  if (s) {
    log_fn(LOG_INFO, "Loading cached directory from %s", filename);