]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
we should exit(1) if $HOME doesn't exist and we needed it
authorRoger Dingledine <arma@torproject.org>
Fri, 10 Sep 2004 19:16:01 +0000 (19:16 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 10 Sep 2004 19:16:01 +0000 (19:16 +0000)
svn:r2344

src/or/config.c

index 3e0e0bfb31176419cad437d276594a6f68a57011..6f78b0b6601b7985564f45e8e740bea2a963abf6 100644 (file)
@@ -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;
   }