aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-14 16:49:41 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:49:28 -0500
commit3907faf2fdc28a0c9f85279a58f2059c9a44f9b4 (patch)
treeb195babb833cacd649e1837a30e3c23702b52be1 /src/or/control.c
parent7b34ab3e384b5c72e938d11e5e05c72b9d529bb8 (diff)
downloadtor-3907faf2fdc28a0c9f85279a58f2059c9a44f9b4.tar.gz
tor-3907faf2fdc28a0c9f85279a58f2059c9a44f9b4.zip
New accessors for keydir/cachedir access
This patch is a result of auditing all of our uses of get_datadir_fname() and its kin, and dividing them into cache vs keys vs other data. The new get_keydir_fname() and get_cachedir_fname() functions don't actually do anything new yet.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 0d462b2d7d..e17e923650 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -2115,7 +2115,7 @@ getinfo_helper_dir(control_connection_t *control_conn,
*answer = tor_strdup(consensus->dir);
}
if (!*answer) { /* try loading it from disk */
- char *filename = get_datadir_fname("cached-consensus");
+ char *filename = get_cachedir_fname("cached-consensus");
*answer = read_file_to_str(filename, RFTS_IGNORE_MISSING, NULL);
tor_free(filename);
if (!*answer) { /* generate an error */