[*] Amend UNIX module path resolution

This commit is contained in:
Reece Wilson 2022-04-13 12:38:26 +01:00
parent 415116c891
commit 1192c616d1

View File

@ -135,10 +135,20 @@ namespace Aurora::Process
"/proc/curproc/file"
};
if (!AuTryResize(path, 8192))
{
return false;
}
for (const auto &name : procFsPaths)
{
if (AuIOFS::ReadString(name, path))
ssize_t count;
if ((count = readlink(name.c_str(), &path[0], path.size())) > 0)
{
if (!AuTryResize(path, count))
{
return false;
}
splitter = '/';
return true;
}