aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigGlobal.cxx
diff options
context:
space:
mode:
authorMaarten de Vries <maarten@de-vri.es>2013-08-25 15:51:41 +0200
committerMax Kellermann <max@duempel.org>2013-09-12 08:55:45 +0200
commit08e6d222a2dea2509baea0a19b754743374756d3 (patch)
tree428ca5c503a3bc4088052d3ed2233b4315869081 /src/ConfigGlobal.cxx
parentcf98b0e261ab40e199ff505a27510a56762c8091 (diff)
downloadmpd-08e6d222a2dea2509baea0a19b754743374756d3.tar.gz
mpd-08e6d222a2dea2509baea0a19b754743374756d3.tar.xz
mpd-08e6d222a2dea2509baea0a19b754743374756d3.zip
Listen: Allow tilde paths for socket.
Diffstat (limited to '')
-rw-r--r--src/ConfigGlobal.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ConfigGlobal.cxx b/src/ConfigGlobal.cxx
index 11e53fc3c..bd1440a5e 100644
--- a/src/ConfigGlobal.cxx
+++ b/src/ConfigGlobal.cxx
@@ -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: ",