Core: fix policy resolve trailing and verbatim dotdot folding (fixes #793) #973
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!973
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/973/head"
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?
@pushkarreddyy on GitHub · 2026-11-24 14:36 UTC · original
pushkarreddyy:fix/policy-resolve-dotdot→main· +39 −21 · 1 files · 2 commits · closed without mergingSummary
Fixes
policy::resolveon trailing..and Windows verbatim\\?\prefixes, resolving #793.Changes
crates/victory-core/src/policy.rs:..without failing whenfile_name()returnsNone.\\?\prefixes when resolving paths.Verification
victory-core.cargo clippy --workspace --all-targets --locked -- -D warnings.@Zipettte on GitHub · 2026-11-24 15:13 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
58ee9ad:cargo test -p victory-corepasses, 12 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@pushkarreddyy on GitHub · 2026-11-24 15:28 UTC · original
Thank you @Zipettte for testing and verifying PR #973 on AMD Radeon RX 7700 XT!
@DaniiL35 on GitHub · 2026-11-24 16:18 UTC · original
Reviewed and verified on macOS Darwin:
normalizehelper completely resolves the dead-code lint warning.\\?\\verbatim path representations (Component::Normal(n) if *n == "..").policy.rs(handles_trailing_dotdot_and_curdir) pass cleanly.PR is clean, minimal, and ready to merge!
@Marvisak on GitHub · 2026-11-25 00:29 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #937. Same fix as #937 (trailing '..' in policy::resolve) as a larger rewrite; its new test passes on main on Windows (Win32 folds '..' before the open), so it does not exercise the fix, and the extra Normal("..") arms are dead code.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed