summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-09 07:12:31 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-09 07:12:31 +0000
commit180e0a9326a1383cf3a945e84700f99f5f9e4df1 (patch)
tree1839878e30f80d127ef798159b227add6200259c /src/or/router.c
parent6521c2ce51b3b808dd8ef5c47dc9995acce149e5 (diff)
downloadtor-180e0a9326a1383cf3a945e84700f99f5f9e4df1.tar.gz
tor-180e0a9326a1383cf3a945e84700f99f5f9e4df1.zip
Make check_private_dir trimodal (check/create/ignore), not bimodal (create/ignore).
svn:r2733
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index c47080e562..75f2fe6a41 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -259,12 +259,12 @@ int init_keys(void) {
}
/* Make sure DataDirectory exists, and is private. */
datadir = options->DataDirectory;
- if (check_private_dir(datadir, 1)) {
+ if (check_private_dir(datadir, CPD_CREATE)) {
return -1;
}
/* Check the key directory. */
tor_snprintf(keydir,sizeof(keydir),"%s/keys", datadir);
- if (check_private_dir(keydir, 1)) {
+ if (check_private_dir(keydir, CPD_CREATE)) {
return -1;
}
cp = keydir + strlen(keydir); /* End of string. */