Don't try to create the datadir when we are only verifying the configuration or hashing a password. Resolves bug 540.
svn:r12884
is fishy. Resolves bug 463.
- Don't reset trusted dir server list when we set a configuration
option. Patch from Robert Hogan.
+ - Don't try to create the datadir when running --verify-config or
+ --hash-password. Resolves bug 540.
Changes in version 0.2.0.9-alpha - 2007-10-24
}
/* 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\"",