fix(libkernel): resolve original .prx names to relinked .guest.prx in lstat #5401
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5401"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-13T18:50:24Z.
What
#4688 made
stat,sceKernelStat, read-onlysceKernelOpenandsceKernelCheckReachabilityfindX.guest.prxwhen a title asks forX, the name the relinker replaced, and listedlstatas not covered.lstatstill answeredENOENTfor the same path, so code that checks for a plugin withlstatsaw it missing whilestatanddlopenfound it.lstatnow resolves the name throughFile::PathOrRelinkedModule, assceKernelCheckReachabilitydoes. An existingX, including a dangling symbolic link, is still reported as it is; only a missingXfalls back toX.guest.prx.#4938 and #4691 both rewrite
lstat_nid_postfix. Whichever of them lands after this carries the one line over.No title is claimed.
Related: #4225
Tested
On GitHub's runners from my fork, on
mainat18c438b10(run):-DANYPS5_ENABLE_SPIRV_TOOLS=ON.On both:
TestRelinkedModuleNamesinguest_filesystemgains twolstatchecks:ENOENTwhile neither name exists, and the relinked file's size onceX.guest.prxexists. Withmain'sStdio.cppthe test aborts at the second check, wherelstatstill reportsENOENT. With the change it passes 20 runs in a row.core/libs/prx/libcandcore/libs/prx/libkernelpasses: 69 and 124 on Linux, 90 and 127 on Windows.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T19:10:33Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libkernel/File/src/Stdio.cppL863-867Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:27:29Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed