Skip to content

path,win: fix bug in resolve and normalize#55623

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
JaneaSystems:huseyin-12648-physical-drive-broken
Nov 5, 2024
Merged

path,win: fix bug in resolve and normalize#55623
nodejs-github-bot merged 1 commit intonodejs:mainfrom
JaneaSystems:huseyin-12648-physical-drive-broken

Conversation

@huseyinacacak-janea
Copy link
Contributor

This PR fixes resolving device paths like \\.\PHYSICALDRIVE.
The resolve and normalize functions were adding a trailing backslash, considering that this device path was a UNC path. However, device paths are different than UNC paths.

In addition to fixing this issue, the previous attempt also fixed other inconsistencies. So, this PR only fixes the issue itself.

Previous PR: #54224
Fixes: #54025

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

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backported-to-v22.x PRs backported to the v22.x-staging branch. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. path Issues and PRs related to the path subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

require('fs').openSync('\\\\.\\PhysicalDrive2', fs.constants.O_RDWR) is broken

10 participants