diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-22 00:13:42 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-22 00:13:42 +0000 |
commit | 6c56f34aaf43bd25ebb77d66169b29681442d9b6 (patch) | |
tree | 002d8d4d449907e8dcfaec11d64ec4d348d77c99 /src/or/main.c | |
parent | 3c2c8ed42bdcc26edebb73531e0d6a22ab2fff07 (diff) | |
download | tor-6c56f34aaf43bd25ebb77d66169b29681442d9b6.tar tor-6c56f34aaf43bd25ebb77d66169b29681442d9b6.tar.gz |
clients shouldn't create datadir until we have something to put there
svn:r2092
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 640edffe7..054097b7f 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -667,7 +667,8 @@ static int init_from_config(int argc, char **argv) { } /* Ensure data directory is private; create if possible. */ - if (check_private_dir(get_data_directory(&options), 1) != 0) { + if (get_data_directory(&options) && + check_private_dir(get_data_directory(&options), 1) != 0) { log_fn(LOG_ERR, "Couldn't access/create private data directory %s", get_data_directory(&options)); return -1; |