fix(libkernel): accept trailing slashes in sceKernelMkdir #2819
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2819"
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-10T16:07:13Z.
What
Fixes #2743.
sceKernelMkdirnow accepts trailing slashes by resolving the path to its final component before checking and creating the directory. It returns the expected guest errors for an empty path, an existing directory, and a non-directory parent. Regression coverage includes guest root, empty paths, trailing separators, and the non-directory parent case.Tested
main: rebuiltlibkernel.prxandguest_kernel_sync_tests;guest_kernel_syncpassed (1/1).tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.mainbase (guest_kernel_sync3/3 and 380 additional tests passed); that report is in the issue comments and was not rerun on this rebased head.Checklist
main; no open PR implements the same fixImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T16:30:03Z.
The reported macOS Intel timeout comes from the unrelated
write_watch_threadsstress test, which polls continuously while four threads write to protected pages. I opened #2846 as a separate test reliability follow-up: it keeps the four writers and concurrency assertions, yields between collection polls, and lowers the stress loop from 200 to 50 rounds to stay within the documented 30-second test limit. Its macOS CI is running now.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T16:33:08Z.
Validation update: #2846 now passes the macOS Intel
write_watchCI job, includingwrite_watch_threads; the macOS arm64 job, all register-context jobs, all three relinker jobs, conventions, intake, and eligibility also pass. The Linux and Windows full builds were skipped by the repository workflow policy. PR #2819 remains separate and its earlier failed run cannot be rerun, but the test adjustment has now passed on the same macOS Intel runner that timed out.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T20:00:30Z.
Windows validation of the current head
046680damerged ontomain43e1425b.Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build including thelibstarget.guest_kernel_syncpasses 3/3 (--repeat until-fail:3).ctest -E "^agc_|video_out"passes 383/383.main'sStdio.cppand this PR's test,guest_kernel_syncfails at line 40 (the empty-path check), so the new coverage does detect the previous behaviour.Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:51:58Z.
Checked on Linux (build +
guest_kernel_sync): passes, and fails withStdio.cppreverted, so the new cases pin the fix. Trailing slashes, empty path (ENOENT), existing dir (EEXIST) and non-directory parent (ENOTDIR) match FreeBSDmkdir. Windows run by @screamm on the current head also green. The red macOS Intelwrite_watch_threadsjob is unrelated (#2846) and was re-run. Merging.