Merge pull request #556 from neuroscr/issue547-2

handle relative config paths better
This commit is contained in:
Ryan Tharp 2019-04-23 17:40:54 -07:00 committed by GitHub
commit 124e9dc4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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