Skip to content

build: mark winuxcmd.exe longPathAware in the manifest - #1295

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/manifest-long-path-aware
Oct 25, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/manifest-long-path-aware

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Fixes #1288

Summary

Implements the audit's "cheap mitigation": adds <ws2016:longPathAware>true</ws2016:longPathAware> (SMI/2016 WindowsSettings) to resources/winuxcmd.manifest, alongside the existing activeCodePage setting. On Windows 10 1607+ hosts with LongPathsEnabled set, unprefixed Win32 probes then reach past MAX_PATH instead of failing with ERROR_PATH_NOT_FOUND — covering every normalize-only site that does not carry an explicit \\?\ prefix (df probes, sed renames, error helpers, find start points). Complementary to, not a substitute for, the extended-path boundary fixes (the registry key remains a host dependency).

Test plan

  • scripts/build-with-vs.ps1 -Target winuxcmd builds; longPathAware string present in the linked winuxcmd.exe

Generated with Devin

Cheap mitigation from the audit: on hosts with LongPathsEnabled
(Windows 10 1607+) unprefixed Win32 probes reach past MAX_PATH instead of
failing with ERROR_PATH_NOT_FOUND, covering every normalize-only site that
does not carry an explicit \\?\ prefix.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@caomengxuan666
caomengxuan666 merged commit 4d1098a into main Oct 25, 2026
8 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/manifest-long-path-aware branch October 30, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[audit] long-path probe class: 27 sites (15 RAW-USER-PATH + 12 INTERNAL-LONG) — find's #1285 fix was the half-fix

1 participant