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
{{ message }}
Repository navigation
Commit d665e43
Browse filesBrowse the repository at this point in the historyBrowse files
fix(filesystem): report a dangling symlink as broken, not as a missing parent
When a requested path is, or passes through, a symlink whose target does
not exist, the realpath of that entry in resolveUnicodeEquivalentPath
failed with ENOENT, and validatePath reported "Parent directory does not
exist" for a directory that does exist. The entry is known to exist at
that point (lstat found it), so an ENOENT from its realpath means its
target is missing: say so, naming the symlink. The request is still
refused; any other realpath failure is reported as it is.
Closes#5191
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
Report a dangling symlink as a broken symlink. A request through a symlink whose target does not exist is still refused, but the error now names the symlink instead of saying its parent directory, which exists, does not.
0 commit comments