handle relative config paths better

This commit is contained in:
Ryan Tharp 2019-04-23 17:40:44 -07:00
parent 563407c0a8
commit 89837d5528
1 changed files with 4 additions and 3 deletions

View File

@ -72,8 +72,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
@ -106,7 +107,7 @@ main(int argc, char *argv[])
// clang-format off
cxxopts::Options options(
"lokinet",
"LokiNET is a free, open source, private, decentralized, "market based sybil resistant" and IP based onion routing network"
"LokiNET is a free, open source, private, decentralized, \"market based sybil resistant\" and IP based onion routing network"
);
options.add_options()
("v,verbose", "Verbose", cxxopts::value<bool>())