You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
path: strip extended-length path prefix in PathResolve (C++) and win32.resolve (JS)
Move the fix for Windows extended-length path prefix handling from
lib/fs.js to the C++ PathResolve function (src/path.cc) and the JS
path.resolve function (lib/path.js).
The \\?\ prefix is a Win32 API mechanism for bypassing MAX_PATH limits.
When path.resolve encounters paths like \\?\C:\foo or \\?\UNC\server\share,
it should strip the prefix and resolve the underlying standard path.
Device paths like \\?\PHYSICALDRIVE0 are left unchanged.
This fix addresses the root cause in the path resolution layer rather
than working around it in fs.realpathSync/realpath.
Agent-Logs-Url: https://github.com/jazelly/node/sessions/b73cebf2-9b87-42a3-a50e-c5da1b454971
Co-authored-by: jazelly <28685065+jazelly@users.noreply.github.com>
0 commit comments