From 89e1b97a92e6c294c611a139dcbf1c3c68cce7e4 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 7 Apr 2014 10:23:05 +0100 Subject: [PATCH] settings: ensure config path is absolute I have a feeling using -D would break this due to the change to cwd? --- src/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.c b/src/settings.c index 2081886d..651d9190 100644 --- a/src/settings.c +++ b/src/settings.c @@ -51,7 +51,7 @@ void hts_settings_init(const char *confpath) { if (confpath) - settingspath = strdup(confpath); + settingspath = realpath(confpath, NULL); } /**