From 6c56f34aaf43bd25ebb77d66169b29681442d9b6 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 22 Jul 2004 00:13:42 +0000 Subject: clients shouldn't create datadir until we have something to put there svn:r2092 --- src/or/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/main.c') 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; -- cgit v1.2.3