mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
make datadirectory work again
svn:r2724
This commit is contained in:
parent
6b22360eb8
commit
ef6bdd6c1e
@ -176,6 +176,7 @@ static int add_single_log_option(or_options_t *options, int minSeverity,
|
|||||||
int maxSeverity,
|
int maxSeverity,
|
||||||
const char *type, const char *fname);
|
const char *type, const char *fname);
|
||||||
static int normalize_log_options(or_options_t *options);
|
static int normalize_log_options(or_options_t *options);
|
||||||
|
static int validate_data_directory(or_options_t *options);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Functions to read and write the global options pointer.
|
* Functions to read and write the global options pointer.
|
||||||
@ -1828,7 +1829,7 @@ get_data_directory(void)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
validate_data_directory(or_options_t *options) {
|
validate_data_directory(or_options_t *options) {
|
||||||
const char *d;
|
const char *d = options->DataDirectory;
|
||||||
|
|
||||||
if (!options->DataDirectory) {
|
if (!options->DataDirectory) {
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
|
Loading…
Reference in New Issue
Block a user