fix(libc): keep a drive-letter component of a guest path under its mount on Windows #6061

Merged
wachi35676 merged 1 commit from upstream-pr/6061 into main 2026-10-18 15:51:46 +00:00
wachi35676 commented 2026-10-14 21:04:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-14T21:04:11Z.


What

On Windows, a guest path whose component looks like a drive letter escapes its mount. Resolve appends guest components to the host root or to an alias directory with std::filesystem::path::operator/. On Windows a component such as C: at the start of the appended part is parsed as a root name, so it replaces the host directory instead of being appended:

Guest path main resolves to With this PR
/savedata0/C:/Windows/win.ini C:\Windows\win.ini <savedata dir>\C:\Windows\win.ini
/app0/../C:/Windows/win.ini C:\Windows\win.ini <root>\C:\Windows\win.ini
/C:/x <root>\x (component dropped) <root>\C:\x
/savedata0/C:file <savedata dir>\file <savedata dir>\C:file (the NTFS alternate data stream file of C; see below)

On FreeBSD, : is an ordinary file-name character, so these names belong under the mount. This is the same class of problem as the parent-traversal escape fixed in #3485.

Guest paths are now split into component names and joined to the host directory as text (SplitNames / Child), so a component is never reinterpreted as a root. The rest is unchanged:

  • . and .. handling, including the directory check before ..
  • the case-insensitive fallback in ResolveHostPath
  • the trailing-slash handling under an alias from #4681, which still receives the trailing / through JoinNames
  • the relinked-module lookup from eac8bfcfc (module mode, <name>.guest.prx matched in the same listing), which now runs on the component names
  • explicit native drive paths passed to Resolve (C:/...), which are still passed through as before

On NTFS a guest name containing : is still not a plain file name: name:stream opens the alternate data stream of name, as it already did on main. A line in docs/dev/debt/libc.md now records it (creating /savedata0/C:file makes an empty file C with stream file, stat /savedata0/C reports a regular file, mkdir of a name containing : fails with EINVAL); each point was checked with a probe through sceKernelOpen/sceKernelStat/sceKernelMkdir. Thanks to @screamm for pointing it out.

Tested

Rebased on main 5050a23f3 (after eac8bfcfc and cee2006d1):

  • Windows: 49 of 49 path, file system and module tests pass; guest_path_drive_component aborts with main's libc and passes with this PR.
  • Linux: 40 of 40 of the same tests pass, including guest_filesystem (#4681's and eac8bfcfc's checks).
  • Equivalence with main's new path code: 87 plain paths and 376 module paths (<name>.guest.prx exact, other case, ambiguous, missing, a directory; under the root, aliases, .. routes, with and without a trailing slash), each in plain and module mode from 4 working directories. Linux: identical (348/348 plain, 1504/1504 module per mode). Windows: every difference is a path with a drive-letter component (32 plain and 96 module per mode); nothing else differs, including ambiguity errors in a case-sensitive directory.

Results below are from the first version (13ffb79a4 on 799982fac):

New test guest_path_drive_component (core/libs/tests/GuestPathDriveComponent.cpp) covers drive components under an alias, after .., at the root and inside a directory.

  • Windows (GCC 15.2, rebased on 799982fac):
    • The new test aborts with main's General.cpp.
    • With this PR, 36 of 36 path tests pass (guest_path*, guest_filesystem, guest_working_directory, guest_realpath, guest_directory*, guest_savedata_*, download_data_mount_*, guest_kernel_rename, guest_file*).
    • An earlier wider run of all guest_*, libc*, libkernel* and path tests passed 412 of 413. The exception, guest_user_service, fails the same way on main.
  • Linux (WSL Ubuntu 24.04, GCC 13.3): 67 of 67 path tests pass, including guest_filesystem, where #4681's trailing-slash checks run.
    • To confirm the trailing slash really reaches ResolveAlias through the new code, I dropped it before the alias lookup; guest_filesystem then aborts.
  • Equivalence: a harness compiled main's and this PR's path code side by side and resolved 87 guest paths in each of 4 working directories. The paths cover absolute and relative paths, . and .., repeated and trailing slashes, backslashes, alias prefixes (case variants and look-alikes such as /savedata0x), error cases, native C:/ and UNC pass-through, and drive components.
    • Linux: 348 of 348 identical.
    • Windows: 316 identical. The 32 differences are exactly the drive-component cases above, each in 4 directories.
  • Not tested: macOS, a full CI run.

Overlap: #5280 and #5835 also edit General.cpp and conflict textually with this PR (each merges cleanly with main): one small hunk in HostPath for #5280 and two in Resolve for #5835. Whichever lands second needs a rebase. #4627 and #4927 merge cleanly with it.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4864498304 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6061). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-14T21:04:11Z. --- ### What On Windows, a guest path whose component looks like a drive letter escapes its mount. `Resolve` appends guest components to the host root or to an alias directory with `std::filesystem::path::operator/`. On Windows a component such as `C:` at the start of the appended part is parsed as a root name, so it replaces the host directory instead of being appended: | Guest path | `main` resolves to | With this PR | |---|---|---| | `/savedata0/C:/Windows/win.ini` | `C:\Windows\win.ini` | `<savedata dir>\C:\Windows\win.ini` | | `/app0/../C:/Windows/win.ini` | `C:\Windows\win.ini` | `<root>\C:\Windows\win.ini` | | `/C:/x` | `<root>\x` (component dropped) | `<root>\C:\x` | | `/savedata0/C:file` | `<savedata dir>\file` | `<savedata dir>\C:file` (the NTFS alternate data stream `file` of `C`; see below) | On FreeBSD, `:` is an ordinary file-name character, so these names belong under the mount. This is the same class of problem as the parent-traversal escape fixed in #3485. Guest paths are now split into component names and joined to the host directory as text (`SplitNames` / `Child`), so a component is never reinterpreted as a root. The rest is unchanged: - `.` and `..` handling, including the directory check before `..` - the case-insensitive fallback in `ResolveHostPath` - the trailing-slash handling under an alias from #4681, which still receives the trailing `/` through `JoinNames` - the relinked-module lookup from eac8bfcfc (`module` mode, `<name>.guest.prx` matched in the same listing), which now runs on the component names - explicit native drive paths passed to `Resolve` (`C:/...`), which are still passed through as before On NTFS a guest name containing `:` is still not a plain file name: `name:stream` opens the alternate data stream of `name`, as it already did on `main`. A line in `docs/dev/debt/libc.md` now records it (creating `/savedata0/C:file` makes an empty file `C` with stream `file`, `stat /savedata0/C` reports a regular file, `mkdir` of a name containing `:` fails with `EINVAL`); each point was checked with a probe through `sceKernelOpen`/`sceKernelStat`/`sceKernelMkdir`. Thanks to @screamm for pointing it out. ### Tested Rebased on `main` `5050a23f3` (after eac8bfcfc and cee2006d1): - **Windows:** 49 of 49 path, file system and module tests pass; `guest_path_drive_component` aborts with `main`'s `libc` and passes with this PR. - **Linux:** 40 of 40 of the same tests pass, including `guest_filesystem` (#4681's and eac8bfcfc's checks). - **Equivalence with `main`'s new path code:** 87 plain paths and 376 module paths (`<name>.guest.prx` exact, other case, ambiguous, missing, a directory; under the root, aliases, `..` routes, with and without a trailing slash), each in plain and module mode from 4 working directories. Linux: identical (348/348 plain, 1504/1504 module per mode). Windows: every difference is a path with a drive-letter component (32 plain and 96 module per mode); nothing else differs, including ambiguity errors in a case-sensitive directory. Results below are from the first version (`13ffb79a4` on `799982fac`): New test `guest_path_drive_component` (`core/libs/tests/GuestPathDriveComponent.cpp`) covers drive components under an alias, after `..`, at the root and inside a directory. - **Windows** (GCC 15.2, rebased on `799982fac`): - The new test aborts with `main`'s `General.cpp`. - With this PR, 36 of 36 path tests pass (`guest_path*`, `guest_filesystem`, `guest_working_directory`, `guest_realpath`, `guest_directory*`, `guest_savedata_*`, `download_data_mount_*`, `guest_kernel_rename`, `guest_file*`). - An earlier wider run of all `guest_*`, `libc*`, `libkernel*` and `path` tests passed 412 of 413. The exception, `guest_user_service`, fails the same way on `main`. - **Linux** (WSL Ubuntu 24.04, GCC 13.3): 67 of 67 path tests pass, including `guest_filesystem`, where #4681's trailing-slash checks run. - To confirm the trailing slash really reaches `ResolveAlias` through the new code, I dropped it before the alias lookup; `guest_filesystem` then aborts. - **Equivalence:** a harness compiled `main`'s and this PR's path code side by side and resolved 87 guest paths in each of 4 working directories. The paths cover absolute and relative paths, `.` and `..`, repeated and trailing slashes, backslashes, alias prefixes (case variants and look-alikes such as `/savedata0x`), error cases, native `C:/` and UNC pass-through, and drive components. - Linux: 348 of 348 identical. - Windows: 316 identical. The 32 differences are exactly the drive-component cases above, each in 4 directories. - Not tested: macOS, a full CI run. Overlap: #5280 and #5835 also edit `General.cpp` and conflict textually with this PR (each merges cleanly with `main`): one small hunk in `HostPath` for #5280 and two in `Resolve` for #5835. Whichever lands second needs a rebase. #4627 and #4927 merge cleanly with it. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
screamm commented 2026-10-15 08:53:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-15T08:53:28Z.


Cross-check on Windows: #6061 head 13ffb79a4 merged onto main d92a8dad3; the merge is clean.

Host: Windows 11 Pro 26220, Ryzen 7 5700X, RTX 4070 (driver 596.21), WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release.

  • Build: full build and libs both succeed, with no new warnings. The one warning in General.cpp, u8path deprecated at line 445, is main's line 410.
  • Tests, --repeat until-fail:3: guest_path_drive_component and 49 file-system tests pass 3/3, 150 of 150 runs:
    • guest_path_case, guest_working_directory, guest_realpath, guest_filesystem, guest_posix_filesystem, guest_kernel_rename and guest_kernel_sys;
    • the guest_directory*, guest_file*, guest_savedata_* and download_data_mount_* tests.
  • Negative control: guest_path_drive_component_tests run with main's libc aborts (FATAL: abort() (SIGABRT)).
  • Suite, ctest -j8 --timeout 120 -E '^agc_driver_|^video_out_flip': 815 tests, and 814 pass, including the 2 skipped.
    • hardware_oracle_compare hit its own 20 s timeout, in the suite and again alone.
    • Run directly, it passes (Ran 8 tests in 36.066s, OK). It tests tools/hw-oracle, which this PR does not touch.
  • Checks: check_conventions.py --base origin/main and git diff --check are clean.

The exact case, through the guest API. A small probe calls sceKernelOpen, sceKernelStat and sceKernelMkdir, with an alias /e2e-mount that points to <dir>\Mounted:

Guest path main this PR
/e2e-mount/C:/Windows/win.ini opens and reads the host's C:\Windows\win.ini 0x80020002
/e2e-mount/../C:/Windows/win.ini reads C:\Windows\win.ini 0x80020002
stat /e2e-mount/C:/Windows 0, directory 0x80020002
create /e2e-mount/C:/<dir>/Outside/written.txt writes the file outside the mount 0x80020002, nothing written
/e2e-mount/C:inside.txt reads Mounted\inside.txt (component dropped) 0x80020002
/e2e-mount/inside.txt reads it reads it

So on main a guest can read and write anywhere on the host drive through any mount, and this PR keeps those paths under the mount.

One related note, not introduced here. On NTFS a name with : is not a plain file name. Creating /e2e-mount/C:file with this PR makes a file C whose stream file holds the data, and stat /e2e-mount/C then reports a file. /e2e-mount/name:stream behaves the same way on main. mkdir /e2e-mount/C: returns EINVAL; on main it returns EEXIST, because it resolves to the mount itself. A debt line about : in guest names on Windows might be worth adding. The PR's table entry <savedata dir>\C:file is such a stream.

Titles. Catalog releases, relinked once with main's relinker, so only the libraries differ. Each ran 60 s with the display on, app0/eboot.bin staged and HOME unset.

Title main this PR
ccleste (PPSA59322) running at 60 s, 4110 frames running at 60 s, 3468 frames
PS5MC (PPSA99420) running at 60 s, 753 frames running at 60 s, 421 frames
Prospero Explorer (PPSA99109) running at 60 s, 589 frames running at 60 s, 574 frames

ccleste loads its assets through .. under /app0, the path shape this PR rewrites:

[src/Open.cpp:215 sceKernelOpen] path=/app0/assets/hui/../celeste/gfx.bmp flags=0x0 nativeFlags=0x8000 mode=00

It reaches its title screen with both builds.

  • Logs. The logged open/stat lines are the same for each title on both builds.
  • PS5MC has the same 14 kodi.log error lines on both builds, including GetDirectory - Error getting /app0/addons, and the same 222 SQLite version-probe cannot open file lines.
  • Prospero Explorer opens every mount with O_DIRECTORY and gets the same result on both builds.
  • No run has a stop line. Frame counts follow host load.

Verdict: confirmed. The drive-letter escape is real on main, for both reads and writes, and this PR closes it. The new test fails on main and passes here, and there is no regression in the tests or the three file-I/O titles.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188288271 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6061#issuecomment-6188288271). Originally posted by [screamm](https://github.com/screamm) on 2026-10-15T08:53:28Z. --- **Cross-check on Windows: #6061 head `13ffb79a4` merged onto `main` `d92a8dad3`; the merge is clean.** Host: Windows 11 Pro 26220, Ryzen 7 5700X, RTX 4070 (driver 596.21), WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release. - **Build:** full build and `libs` both succeed, with no new warnings. The one warning in `General.cpp`, `u8path` deprecated at line 445, is `main`'s line 410. - **Tests, `--repeat until-fail:3`:** `guest_path_drive_component` and 49 file-system tests pass 3/3, 150 of 150 runs: - `guest_path_case`, `guest_working_directory`, `guest_realpath`, `guest_filesystem`, `guest_posix_filesystem`, `guest_kernel_rename` and `guest_kernel_sys`; - the `guest_directory*`, `guest_file*`, `guest_savedata_*` and `download_data_mount_*` tests. - **Negative control:** `guest_path_drive_component_tests` run with `main`'s `libc` aborts (`FATAL: abort() (SIGABRT)`). - **Suite, `ctest -j8 --timeout 120 -E '^agc_driver_|^video_out_flip'`:** 815 tests, and 814 pass, including the 2 skipped. - `hardware_oracle_compare` hit its own 20 s timeout, in the suite and again alone. - Run directly, it passes (`Ran 8 tests in 36.066s`, `OK`). It tests `tools/hw-oracle`, which this PR does not touch. - **Checks:** `check_conventions.py --base origin/main` and `git diff --check` are clean. **The exact case, through the guest API.** A small probe calls `sceKernelOpen`, `sceKernelStat` and `sceKernelMkdir`, with an alias `/e2e-mount` that points to `<dir>\Mounted`: | Guest path | `main` | this PR | |---|---|---| | `/e2e-mount/C:/Windows/win.ini` | opens and reads the host's `C:\Windows\win.ini` | `0x80020002` | | `/e2e-mount/../C:/Windows/win.ini` | reads `C:\Windows\win.ini` | `0x80020002` | | `stat /e2e-mount/C:/Windows` | 0, directory | `0x80020002` | | create `/e2e-mount/C:/<dir>/Outside/written.txt` | writes the file outside the mount | `0x80020002`, nothing written | | `/e2e-mount/C:inside.txt` | reads `Mounted\inside.txt` (component dropped) | `0x80020002` | | `/e2e-mount/inside.txt` | reads it | reads it | So on `main` a guest can read and write anywhere on the host drive through any mount, and this PR keeps those paths under the mount. One related note, not introduced here. On NTFS a name with `:` is not a plain file name. Creating `/e2e-mount/C:file` with this PR makes a file `C` whose stream `file` holds the data, and `stat /e2e-mount/C` then reports a file. `/e2e-mount/name:stream` behaves the same way on `main`. `mkdir /e2e-mount/C:` returns EINVAL; on `main` it returns EEXIST, because it resolves to the mount itself. A debt line about `:` in guest names on Windows might be worth adding. The PR's table entry `<savedata dir>\C:file` is such a stream. **Titles.** Catalog releases, relinked once with `main`'s relinker, so only the libraries differ. Each ran 60 s with the display on, `app0/eboot.bin` staged and `HOME` unset. | Title | `main` | this PR | |---|---|---| | ccleste (PPSA59322) | running at 60 s, 4110 frames | running at 60 s, 3468 frames | | PS5MC (PPSA99420) | running at 60 s, 753 frames | running at 60 s, 421 frames | | Prospero Explorer (PPSA99109) | running at 60 s, 589 frames | running at 60 s, 574 frames | ccleste loads its assets through `..` under `/app0`, the path shape this PR rewrites: ``` [src/Open.cpp:215 sceKernelOpen] path=/app0/assets/hui/../celeste/gfx.bmp flags=0x0 nativeFlags=0x8000 mode=00 ``` It reaches its title screen with both builds. - **Logs.** The logged `open`/`stat` lines are the same for each title on both builds. - **PS5MC** has the same 14 `kodi.log` error lines on both builds, including `GetDirectory - Error getting /app0/addons`, and the same 222 SQLite version-probe `cannot open file` lines. - **Prospero Explorer** opens every mount with `O_DIRECTORY` and gets the same result on both builds. - No run has a stop line. Frame counts follow host load. Verdict: confirmed. The drive-letter escape is real on `main`, for both reads and writes, and this PR closes it. The new test fails on `main` and passes here, and there is no regression in the tests or the three file-I/O titles. AI-assisted (Claude Code).
wachi35676 commented 2026-10-15 12:13:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-15T12:13:13Z.


Thank you for the thorough cross-check, including the write case and the title runs.

The : note is now in docs/dev/debt/libc.md. I checked each point with a probe through sceKernelOpen/sceKernelWrite/sceKernelStat/sceKernelMkdir on a mount, listing the host streams with FindFirstStreamW:

  • creating /mount/C:file makes an empty C with a 4-byte stream :file, and stat /mount/C reports a regular file (0x80020002 on main, where the component is dropped and Mounted\file is written instead);
  • name:stream gives the same result on both builds;
  • mkdir /mount/C: returns EINVAL here and EEXIST on main, and mkdir dir:x returns EINVAL on both.

I also rebased onto 5050a23f3, past eac8bfcfc, which reworked ResolveHostPath for relinked modules. Its module lookup now runs on the component names unchanged. Comparing main's and this branch's path code over 87 plain and 376 module paths from 4 working directories gives identical results on Linux; on Windows every difference has a drive-letter component. The PR description has the details. Windows 49/49 and Linux 40/40 path, file system and module tests pass.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191768161 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6061#issuecomment-6191768161). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-15T12:13:13Z. --- Thank you for the thorough cross-check, including the write case and the title runs. The `:` note is now in `docs/dev/debt/libc.md`. I checked each point with a probe through `sceKernelOpen`/`sceKernelWrite`/`sceKernelStat`/`sceKernelMkdir` on a mount, listing the host streams with `FindFirstStreamW`: - creating `/mount/C:file` makes an empty `C` with a 4-byte stream `:file`, and `stat /mount/C` reports a regular file (`0x80020002` on `main`, where the component is dropped and `Mounted\file` is written instead); - `name:stream` gives the same result on both builds; - `mkdir /mount/C:` returns `EINVAL` here and `EEXIST` on `main`, and `mkdir dir:x` returns `EINVAL` on both. I also rebased onto `5050a23f3`, past eac8bfcfc, which reworked `ResolveHostPath` for relinked modules. Its module lookup now runs on the component names unchanged. Comparing `main`'s and this branch's path code over 87 plain and 376 module paths from 4 working directories gives identical results on Linux; on Windows every difference has a drive-letter component. The PR description has the details. Windows 49/49 and Linux 40/40 path, file system and module tests pass. AI-assisted: yes (Claude Code); results above were run on this machine.
github-actions[bot] commented 2026-10-15 12:14:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:14:03Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6226 docs/dev/debt/libc.md L84
PR 7467 core/libs/prx/libc/src/General.cpp L114-116, L118-119

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5021 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/General.cpp
docs/dev/debt/libc.md
PR 5303 docs/dev/debt/libc.md
PR 6044 core/libs/prx/libc/CMakeLists.txt
PR 6222 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/General.cpp
docs/dev/debt/libc.md
PR 6334 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
PR 6483 docs/dev/debt/libc.md
PR 6565 docs/dev/debt/libc.md
PR 6879 core/libs/prx/libc/src/General.cpp
PR 7084 core/libs/prx/libc/CMakeLists.txt
PR 7201 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/General.cpp
PR 7447 core/libs/prx/libc/CMakeLists.txt
docs/dev/debt/libc.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191783482 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6061#issuecomment-6191783482). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:14:03Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6226](https://www.github.com/boykopovar/AnyPS5/pull/6226) | `docs/dev/debt/libc.md` [L84](https://github.com/boykopovar/AnyPS5/blob/e5f18ea99ab2aa593ca1a49b07de9542fe9054cd/docs/dev/debt/libc.md#L84) | | | | [PR 7467](https://www.github.com/boykopovar/AnyPS5/pull/7467) | `core/libs/prx/libc/src/General.cpp` [L114-116](https://github.com/boykopovar/AnyPS5/blob/e5f18ea99ab2aa593ca1a49b07de9542fe9054cd/core/libs/prx/libc/src/General.cpp#L114-L116), [L118-119](https://github.com/boykopovar/AnyPS5/blob/e5f18ea99ab2aa593ca1a49b07de9542fe9054cd/core/libs/prx/libc/src/General.cpp#L118-L119) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/General.cpp`<br>`docs/dev/debt/libc.md` | | [PR 5303](https://www.github.com/boykopovar/AnyPS5/pull/5303) | `docs/dev/debt/libc.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libc/CMakeLists.txt` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/General.cpp`<br>`docs/dev/debt/libc.md` | | [PR 6334](https://www.github.com/boykopovar/AnyPS5/pull/6334) | `core/libs/prx/libc/CMakeLists.txt`<br>`docs/dev/debt/libc.md` | | [PR 6483](https://www.github.com/boykopovar/AnyPS5/pull/6483) | `docs/dev/debt/libc.md` | | [PR 6565](https://www.github.com/boykopovar/AnyPS5/pull/6565) | `docs/dev/debt/libc.md` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/libs/prx/libc/src/General.cpp` | | [PR 7084](https://www.github.com/boykopovar/AnyPS5/pull/7084) | `core/libs/prx/libc/CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/General.cpp` | | [PR 7447](https://www.github.com/boykopovar/AnyPS5/pull/7447) | `core/libs/prx/libc/CMakeLists.txt`<br>`docs/dev/debt/libc.md` |
adriadam10 commented 2026-10-16 22:38:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T22:38:20Z.


Rebased onto current main. The conflict was in Resolve with the archived parameter and the app0.zar directory check before ..; I kept that check and applied it to the component-name version. Build and the 114 tests in scope pass here, apart from two unrelated ones (guest_syslog, guest_allocator_failures) that fail under load and pass on re-run.

guest_path_drive_component passes on Linux without the change, as expected (the bug is Windows-only), so the Windows evidence is the author's and @screamm's runs; merging after the full Build's windows job is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226019200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6061#issuecomment-6226019200). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T22:38:20Z. --- Rebased onto current `main`. The conflict was in `Resolve` with the `archived` parameter and the `app0.zar` directory check before `..`; I kept that check and applied it to the component-name version. Build and the 114 tests in scope pass here, apart from two unrelated ones (`guest_syslog`, `guest_allocator_failures`) that fail under load and pass on re-run. `guest_path_drive_component` passes on Linux without the change, as expected (the bug is Windows-only), so the Windows evidence is the author's and @screamm's runs; merging after the full Build's windows job is green.
wachi35676 commented 2026-10-17 16:41:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-17T16:41:37Z.


Thanks for the rebase. Since then #5280 merged and added ProvidedPath in front of HostPath, which conflicted again, so I've rebased onto main 66702f1cf (78cabf5dc, on top of your resolution, the app0.zar check before .. unchanged).

ProvidedPath now takes the component names like HostPath: the provider lookup uses TrimSlashes(JoinNames(names)), and the "already supplied" check calls ResolveHostPath(state.root, names). HostPath asks it after ResolveAlias and before ResolveHostPath, as on main.

  • Windows 11, WinLibs GCC 15.2.0: full build passes; 58/58 path, file system, module and sandbox tests pass, including guest_path_drive_component, guest_sandbox_certificates, guest_sandbox_certificate_trust and guest_sandbox_random_word.
  • Linux (WSL Ubuntu 24.04, GCC 13.3): full build passes; 48/48 of the same set pass.
  • python tools/check_conventions.py --base origin/main passes.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6236870482 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6061#issuecomment-6236870482). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-17T16:41:37Z. --- Thanks for the rebase. Since then #5280 merged and added `ProvidedPath` in front of `HostPath`, which conflicted again, so I've rebased onto `main` `66702f1cf` (`78cabf5dc`, on top of your resolution, the `app0.zar` check before `..` unchanged). `ProvidedPath` now takes the component names like `HostPath`: the provider lookup uses `TrimSlashes(JoinNames(names))`, and the "already supplied" check calls `ResolveHostPath(state.root, names)`. `HostPath` asks it after `ResolveAlias` and before `ResolveHostPath`, as on `main`. - Windows 11, WinLibs GCC 15.2.0: full build passes; 58/58 path, file system, module and sandbox tests pass, including `guest_path_drive_component`, `guest_sandbox_certificates`, `guest_sandbox_certificate_trust` and `guest_sandbox_random_word`. - Linux (WSL Ubuntu 24.04, GCC 13.3): full build passes; 48/48 of the same set pass. - `python tools/check_conventions.py --base origin/main` passes. AI-assisted: yes (Claude Code); results above were run on this machine.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6061
No description provided.