mirror of https://github.com/oxen-io/lokinet
Merge pull request #556 from neuroscr/issue547-2
handle relative config paths better
This commit is contained in:
commit
124e9dc4bf
|
@ -64,8 +64,9 @@ resolvePath(std::string conffname)
|
||||||
char *resolvedPath = realpath(exp_result.we_wordv[0], NULL);
|
char *resolvedPath = realpath(exp_result.we_wordv[0], NULL);
|
||||||
if(!resolvedPath)
|
if(!resolvedPath)
|
||||||
{
|
{
|
||||||
llarp::LogWarn("Can't resolve path: ", exp_result.we_wordv[0]);
|
// relative paths don't need to be resolved
|
||||||
return "";
|
// llarp::LogWarn("Can't resolve path: ", exp_result.we_wordv[0]);
|
||||||
|
return conffname;
|
||||||
}
|
}
|
||||||
return resolvedPath;
|
return resolvedPath;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue