Listen: Allow tilde paths for socket.

This commit is contained in:
Maarten de Vries
2013-08-25 15:51:41 +02:00
committed by Max Kellermann
parent cf98b0e261
commit 08e6d222a2
5 changed files with 23 additions and 4 deletions

View File

@@ -105,6 +105,12 @@ config_get_path(ConfigOption option, Error &error)
if (param == nullptr)
return Path::Null();
return config_parse_path(param, error);
}
Path
config_parse_path(const struct config_param *param, Error & error)
{
Path path = ParsePath(param->value, error);
if (gcc_unlikely(path.IsNull()))
error.FormatPrefix("Invalid path at line %i: ",