Implement the various get_foodir_*() functions.

This commit is contained in:
Nick Mathewson
2017-11-14 18:14:08 -05:00
parent a9806af261
commit a57bcffcc7
9 changed files with 135 additions and 96 deletions
+3
View File
@@ -293,6 +293,9 @@ main(int c, const char **v)
setup_directory();
options_init(options);
options->DataDirectory = tor_strdup(temp_dir);
tor_asprintf(&options->KeyDirectory, "%s"PATH_SEPARATOR"keys",
options->DataDirectory);
options->CacheDirectory = tor_strdup(temp_dir);
options->EntryStatistics = 1;
if (set_options(options, &errmsg) < 0) {
printf("Failed to set initial options: %s\n", errmsg);