fix(libc): resolve case differences in guest paths and mounts #1321

Merged
TibixDev merged 2 commits from upstream-pr/1321 into main 2026-10-08 13:01:29 +00:00
TibixDev commented 2026-10-07 23:33:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-07T23:33:15Z.


What

Resolve ASCII case differences in guest paths and mount aliases. Prefer exact names, preserve new filenames, and reject ambiguous fallback matches. Do not cache directory results, so renames stay visible.

Supersedes #1079. This version also handles mount aliases, blocked mounts, dangling symlinks, and ambiguous names. Tests use guest file APIs as well as path resolution. #1101 concerns Windows module dependency names, a separate path.

Tested

Fedora 44, Release: path-case, app-content, working-directory, directory, and filesystem tests. Covers open, read, create, stat, rename, removal, aliases, and conflicting names. Contribution checks pass.

The combined fork loaded Skyrim files that differ in case from requested names. This isolated branch was not run in-game. Unicode folding and console behavior for case collisions remain unverified; Windows was not tested.

Checklist

  • Current main; prerequisite and competing implementation checked.
  • One topic.
  • No new code comments.
  • Unsupported paths still throw; UI stubs are documented.
  • No notes, logs, or images in the repository.
  • No new third-party code.
  • General behavior.
  • Depends on: none (#1320 is merged).
  • AI-assisted: yes.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4779752963 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1321). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-07T23:33:15Z. --- ### What Resolve ASCII case differences in guest paths and mount aliases. Prefer exact names, preserve new filenames, and reject ambiguous fallback matches. Do not cache directory results, so renames stay visible. Supersedes #1079. This version also handles mount aliases, blocked mounts, dangling symlinks, and ambiguous names. Tests use guest file APIs as well as path resolution. #1101 concerns Windows module dependency names, a separate path. ### Tested Fedora 44, Release: path-case, app-content, working-directory, directory, and filesystem tests. Covers open, read, create, stat, rename, removal, aliases, and conflicting names. Contribution checks pass. The combined fork loaded Skyrim files that differ in case from requested names. This isolated branch was not run in-game. Unicode folding and console behavior for case collisions remain unverified; Windows was not tested. ### Checklist - [x] Current `main`; prerequisite and competing implementation checked. - [x] One topic. - [x] No new code comments. - [x] Unsupported paths still throw; UI stubs are documented. - [x] No notes, logs, or images in the repository. - [x] No new third-party code. - [x] General behavior. - [x] Depends on: none (#1320 is merged). - [x] AI-assisted: yes.
TibixDev commented 2026-10-08 07:03:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T07:03:51Z.


Rebased on bc1fbe81. Rebased the path-case change onto the updated #1320 parent. Kept exact-name preference and ambiguous-name rejection.

Fedora 44 Release: guest_path_case_tests, guest_appcontent_tests, guest_working_directory_tests, guest_directory_tests, guest_filesystem_tests build; the targeted tests and contribution checks pass. Windows CI is pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6054459888 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1321#issuecomment-6054459888). Originally posted by [TibixDev](https://github.com/TibixDev) on 2026-10-08T07:03:51Z. --- Rebased on `bc1fbe81`. Rebased the path-case change onto the updated #1320 parent. Kept exact-name preference and ambiguous-name rejection. Fedora 44 Release: `guest_path_case_tests`, `guest_appcontent_tests`, `guest_working_directory_tests`, `guest_directory_tests`, `guest_filesystem_tests` build; the targeted tests and contribution checks pass. Windows CI is pending.
adriadam10 commented 2026-10-08 12:37:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T12:37:53Z.


Rebased onto current main (#1320 is merged, so its commit is dropped) and added one commit: the new test used a title's file names (Skyrim.*); it now uses generic ones. Also updated the PR body (no longer depends on #1320).

Checked: full build and ctest on the rebase (452/452); guest_path_case fails without the change; exact-name preference, ambiguous-name rejection and alias handling behave as described. Not run: a real title, Windows at runtime, Unicode folding.

#1079 touches the same function and test file; this one supersedes it, so #1079 should be closed once this lands. Merging when CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6060031717 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1321#issuecomment-6060031717). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T12:37:53Z. --- Rebased onto current `main` (#1320 is merged, so its commit is dropped) and added one commit: the new test used a title's file names (`Skyrim.*`); it now uses generic ones. Also updated the PR body (no longer depends on #1320). Checked: full build and ctest on the rebase (452/452); `guest_path_case` fails without the change; exact-name preference, ambiguous-name rejection and alias handling behave as described. Not run: a real title, Windows at runtime, Unicode folding. #1079 touches the same function and test file; this one supersedes it, so #1079 should be closed once this lands. Merging when CI is green.
github-actions[bot] commented 2026-10-08 12:42:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T12:42:58Z.


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
#1535 docs/dev/TechnicalDebt.md L329
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6060116817 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1321#issuecomment-6060116817). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T12:42:58Z. --- <!-- 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 | |---|---|---|---| | #1535 | `docs/dev/TechnicalDebt.md` [L329](https://github.com/boykopovar/AnyPS5/blob/2a906716f9a709554bf1f343c2da90d792178df0/docs/dev/TechnicalDebt.md#L329) | | |
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!1321
No description provided.