Repository navigation
Fix/fs rmsync broken symlink 61020 - #61040
Merged
nodejs-github-bot merged 1 commit intoDec 23, 2025
Merged
nodejs-github-bot merged 1 commit into
nodejs-github-bot merged 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #61040 +/- ##
==========================================
- Coverage 88.53% 88.51% -0.03%
==========================================
Files 703 703
Lines 208546 208546
Branches 40217 40222 +5
==========================================
- Hits 184634 184590 -44
- Misses 15926 15968 +42
- Partials 7986 7988 +2
🚀 New features to boost your workflow:
|
sangwook-dev
force-pushed
the
fix/fs-rmsync-broken-symlink-61020
branch
from
December 13, 2025 15:15
6b1b314 to
00ad33d
Compare
Renegade334
approved these changes
Dec 13, 2025
sangwook-dev
force-pushed
the
fix/fs-rmsync-broken-symlink-61020
branch
from
December 14, 2025 00:20
00ad33d to
f7000b5
Compare
Renegade334
approved these changes
Dec 14, 2025
anonrig
approved these changes
Dec 18, 2025
UlisesGascon
approved these changes
Dec 18, 2025
commented
Dec 19, 2025
Collaborator
commented
Dec 21, 2025
Contributor
Author
|
@Renegade334 |
commented
Dec 23, 2025
Collaborator
commented
Dec 23, 2025
Collaborator
|
Landed in dc8215b |
commented
Dec 24, 2025
|
Hi @Renegade334 ,When will it be merged into branch node.js 24? |
commented
Dec 24, 2025
Member
Usually a few weeks, depending on release schedule. It needs to be releaased on the active branch frst. |
21 tasks
3 tasks
5 tasks done
6 of 13 tasks
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix
fs.rmSync()so it correctly removes broken symbolic links (and symlinks todirectories) instead of becoming a no-op or throwing
ERR_FS_EISDIR.Fixes: #61020
Details
rmSyncwas usingstd::filesystem::status(), which follows symlinks. Forbroken symlinks this reports
not_found, causingrmSyncto return earlywithout unlinking the symlink itself. Switching to
std::filesystem::symlink_status()makes
rmSyncoperate on the symlink entry, matchingfs.rm()behavior.Tests
./node test/parallel/test-fs-rm.js