fix(relinker): compare guest module directories by identity #6276
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6276"
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-15T08:54:02Z.
What
Fixes #6136. Compare guest module directories by filesystem identity so case aliases and symlinks cannot bypass duplicate-directory and executable-in-module-directory checks. The
error_codeoverload keeps comparison safe for absent built-in module paths.Tested
Linux x86_64, GCC 12.2:
test_executables.py: passed.test_guest_module_dir.py: passed.python3 tools/check_conventions.py --base upstream/main --head HEAD: passed.git diff --check: passed.Hosted relinker CTest passed on Ubuntu (GCC), macOS (Clang), and Windows (GCC). The regression tests exercise case-only aliases when the runner filesystem resolves the alternate spelling to the same directory, and symlink aliases where directory symlinks are available. Application build jobs were skipped by path filters; no title run was needed for this relinker change.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T09:05:04Z.
Closing this newer PR as a duplicate of #6156. I missed the existing local worktree/PR during candidate verification. #6156 carries Jota’s original commit and has independent Windows/macOS validation for the alias cases, so it is the better single PR to keep under review.
Pull request closed