Prechádzať zdrojové kódy

Write status to disk in the right place

svn:r4940
Nick Mathewson 20 rokov pred
rodič
commit
0f94aa2ea1
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/or/routerlist.c

+ 1 - 1
src/or/routerlist.c

@@ -1265,7 +1265,7 @@ router_set_networkstatus(const char *s, time_t arrived_at, int is_cached)
     char fp[HEX_DIGEST_LEN+1];
     size_t len = strlen(datadir)+64;
     char *fn = tor_malloc(len+1);
-    tor_snprintf(fn, len, "%s/cached-directory/%s",datadir,fp);
+    tor_snprintf(fn, len, "%s/cached-status/%s",datadir,fp);
     if (write_str_to_file(fn, s, 0)<0) {
       log_fn(LOG_NOTICE, "Couldn't write cached network status to \"%s\"", fn);
     }