fix(libkernel_sys): read relative symbolic links on Windows #4253
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4253"
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 codingreapermaps on 2026-10-12T02:30:59Z.
What
readlinkthrewNotImplementedfor every Windows reparse point, including the symbolic linkssymlinkitself creates, so a title that creates a link and reads it back aborted. It now reads the target of a relative symbolic link from the reparse data (FSCTL_GET_REPARSE_POINT) and returns it with/separators, with the same truncation andEFAULThandling as the existing path. Symbolic links with an absolute target and junctions still throw, since a host path has no guest form; other reparse points throw too.TechnicalDebt.mddocuments the remaining cases.Tested
Windows 11, MinGW-w64 GCC 15.2.0.
guest_kernel_syspasses: file, directory, dangling and non-ASCII links created throughsymlink, truncated reads, a null buffer, and the throw for an absolute link.tools/check_conventions.pypasses. Not tested with a title.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.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-12T13:05:21Z.
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_sys/Export.cppL65docs/dev/TechnicalDebt.mdL401-476