fix(libkernel): report symlink types in Windows getdents #4936
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4936"
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 MarcZX10 on 2026-10-13T05:32:23Z.
What
The Windows directory descriptor backend classified each entry by following it with
directory_entry::is_directory(). As a result, a symlink to a directory was reported asDT_DIR, and a symlink to a file was reported asDT_REG. Linuxgetdentsreports the directory entry itself asDT_LNK; libcreaddirin this project already usessymlink_statusfor that distinction.Classify Windows
sceKernelGetdentsentries usingsymlink_status, preserving symlinks as guest type 10. Extend the shared directory-entry regression to include both a file symlink and a directory symlink.Tested
guest_directory_entry_testsbuilt.ctest --test-dir build-getdents -R '^guest_directory_entries$' --output-on-failure: passed (1/1).-Wall -Wextra -Werrorcompile of the WindowsDirectoryDescriptor.cpppath: passed.python3 tools/check_conventions.py --base upstream/main --head HEAD: passed.python3 tools/check_test_registration.py build-getdents: 762 test executables, 0 built and unrun.git diff --check upstream/main...HEAD: passed.Checklist
main; no other open PR implements the same behaviorImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T08:20:42Z.
Windows build check of this PR.
Environment: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
BUILD_TESTING=ON,-j2,libusb-cmakefrom a local checkout. Built frommainc2565f014with this PR and ten other open PRs (#4972, #4967, #4966, #4945, #4938, #4936, #4933, #4898, #4896, #4888) merged together; the merges had no conflict.Result: the merged tree builds, but no test of this PR runs on Windows: its test (
guest_directory_entry) is registered only for non-Windows builds (if(NOT WIN32)), although the change is for Windowsgetdents.Not checked: any behaviour of the change on Windows; no title run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:35:49Z.
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