diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-09 07:12:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-09 07:12:31 +0000 |
commit | 180e0a9326a1383cf3a945e84700f99f5f9e4df1 (patch) | |
tree | 1839878e30f80d127ef798159b227add6200259c /src/or/router.c | |
parent | 6521c2ce51b3b808dd8ef5c47dc9995acce149e5 (diff) | |
download | tor-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.c | 4 |
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. */ |