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);
|
||||
if(!resolvedPath)
|
||||
{
|
||||
llarp::LogWarn("Can't resolve path: ", exp_result.we_wordv[0]);
|
||||
return "";
|
||||
// relative paths don't need to be resolved
|
||||
// llarp::LogWarn("Can't resolve path: ", exp_result.we_wordv[0]);
|
||||
return conffname;
|
||||
}
|
||||
return resolvedPath;
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue