Fix uses of deprecated Filesystem APIs

This commit is contained in:
Peter Dimov 2024-01-14 20:00:32 +02:00
parent 55bce3c417
commit d8be00789c

View File

@ -345,7 +345,7 @@ void process_script(const std::string& script)
else if(regex_match(line, what, scan_parser))
{
std::string f = unquote(what[1].str());
if(!boost::filesystem::path(f).is_complete())
if(!boost::filesystem::path(f).is_absolute())
{
if(prefix.size())
{
@ -379,7 +379,7 @@ void process_script(const std::string& script)
std::string d = unquote(what[1].str());
std::string m = unquote(what[2].str());
bool r = unquote(what[3].str()) == "true";
if(!boost::filesystem::path(d).is_complete())
if(!boost::filesystem::path(d).is_absolute())
{
if(prefix.size())
{