Skip to content

Conversation

@mattskel
Copy link

Fixes #60295

Get the link target head realpath.
Then resolve realpath and link target tail.
Resolve tail after resolving the link head.
Fixes: nodejs#60295
@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Jan 15, 2026
@mattskel mattskel marked this pull request as ready for review January 15, 2026 13:14
@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.54%. Comparing base (2679b62) to head (2914f1e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61391      +/-   ##
==========================================
+ Coverage   88.52%   88.54%   +0.02%     
==========================================
  Files         704      704              
  Lines      208796   208819      +23     
  Branches    40312    40324      +12     
==========================================
+ Hits       184828   184891      +63     
+ Misses      15955    15908      -47     
- Partials     8013     8020       +7     
Files with missing lines Coverage Δ
lib/fs.js 98.20% <100.00%> (+0.01%) ⬆️

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@targos
Copy link
Member

targos commented Jan 16, 2026

Please add a test.

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

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs.realpath infinite loop

3 participants