aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index a7650637f1..83fec4e1bb 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1004,7 +1004,8 @@ options_act_reversible(or_options_t *old_options, char **msg)
}
/* Ensure data directory is private; create if possible. */
- if (check_private_dir(options->DataDirectory, CPD_CREATE)<0) {
+ if (check_private_dir(options->DataDirectory,
+ running_tor ? CPD_CREATE : CPD_CHECK)<0) {
char buf[1024];
int tmp = tor_snprintf(buf, sizeof(buf),
"Couldn't access/create private data directory \"%s\"",