[*] Amend UNIX module path resolution
This commit is contained in:
parent
415116c891
commit
1192c616d1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user