Skip to content

Correctly convert an NT path to a Win32 path in read_link#107978

Merged
bors merged 2 commits intorust-lang:masterfrom
ChrisDenton:nt-to-win32
May 3, 2023
Merged

Correctly convert an NT path to a Win32 path in read_link#107978
bors merged 2 commits intorust-lang:masterfrom
ChrisDenton:nt-to-win32

Conversation

@ChrisDenton
Copy link
Member

This can be done by simply changing the \??\ prefix to \\?\.

Currently it strips off the prefix which could lead to the wrong path being returned (e.g. if it's not a drive path or if the path contains trailing spaces, etc).

r? libs

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants