diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-14 13:35:39 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-14 13:35:39 +0000 |
commit | 5dcc6fd8b2db190b9158b9f83f098551fd15d461 (patch) | |
tree | 313dc6fe818ef34823d5ad121f1f9f9a4dd46d1b | |
parent | f595ee9a878dcf2575a04baac133947c39e67d31 (diff) | |
download | tor-5dcc6fd8b2db190b9158b9f83f098551fd15d461.tar tor-5dcc6fd8b2db190b9158b9f83f098551fd15d461.tar.gz |
ok ok the stat wasn't redundant
but the warn was
svn:r2852
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 77160d78b..a7fa3e066 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -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); |