aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-09-10 19:16:01 +0000
committerRoger Dingledine <arma@torproject.org>2004-09-10 19:16:01 +0000
commita475ccf5b8818d5ae4d4d02eed4f47b4a05dbcd1 (patch)
tree0a490e3c06126de0fc2284a8f55146ee3a381a7c /src
parentb287509fb36c9bc4d77bdab296b7c8ced1e31320 (diff)
downloadtor-a475ccf5b8818d5ae4d4d02eed4f47b4a05dbcd1.tar
tor-a475ccf5b8818d5ae4d4d02eed4f47b4a05dbcd1.tar.gz
we should exit(1) if $HOME doesn't exist and we needed it
svn:r2344
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 3e0e0bfb3..6f78b0b66 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1044,6 +1044,9 @@ const char *get_data_directory(or_options_t *options) {
}
if (d && strncmp(d,"~/",2)==0) {
char *fn = expand_filename(d);
+ if(!fn) {
+ /* XXX complain and exit(1) here */
+ }
tor_free(options->DataDirectory);
options->DataDirectory = fn;
}