[*] 523abaf0 cont: not so sure on the UNIX-like variant either

This commit is contained in:
Reece Wilson 2023-09-17 14:02:54 +01:00
parent 523abaf0bb
commit 84c0e94282

View File

@ -146,14 +146,18 @@ namespace Aurora::IO::FS
}
auto length = ::getxattr(srcPath.c_str(), "user.xdg.referrer.url", nullptr, 0);
if (length <= 0)
if (length > 0)
{
return true;
}
else
length = ::getxattr(srcPath.c_str(), "user.xdg.origin.url", nullptr, 0);
if (length > 0)
{
return false;
return true;
}
return false;
}
AUKN_SYM bool IsFileTrusted(const AuString &path)