-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: fix realpathSync resolving to invalid path (#54200) #54458
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
Hey! Thanks! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #54458 +/- ##
========================================
Coverage 87.32% 87.33%
========================================
Files 648 649 +1
Lines 182359 182611 +252
Branches 34981 35038 +57
========================================
+ Hits 159239 159475 +236
- Misses 16386 16396 +10
- Partials 6734 6740 +6
|
This reverts commit b998fde.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍!
A few tiny nitpicks, but otherwise I think this looks good (but I'm not a core collaborator)
This PR fixes that
fs.realpathSync
will resolve to invalid path in some situation, specifically the input is/dev/stdin
onLinux
Fixed: #54200