mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
This helps return a better error message when the file supplied to DirPortFrontPage is missing.
svn:r17502
This commit is contained in:
parent
21892d8a9c
commit
f70146ca91
@ -1428,6 +1428,12 @@ options_act(or_options_t *old_options)
|
|||||||
if (options->DirPortFrontPage) {
|
if (options->DirPortFrontPage) {
|
||||||
global_dirfrontpagecontents =
|
global_dirfrontpagecontents =
|
||||||
read_file_to_str(options->DirPortFrontPage, 0, NULL);
|
read_file_to_str(options->DirPortFrontPage, 0, NULL);
|
||||||
|
if (!global_dirfrontpagecontents)
|
||||||
|
{
|
||||||
|
log_warn(LD_CONFIG,
|
||||||
|
"DirPortFrontPage file '%s' not found. Continuing anyway.",
|
||||||
|
options->DirPortFrontPage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user