mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
we should exit(1) if $HOME doesn't exist and we needed it
svn:r2344
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user