[*] 523abaf0
cont: not so sure on the UNIX-like variant either
This commit is contained in:
parent
523abaf0bb
commit
84c0e94282
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user