Skip to content

Conversation

@CGQAQ
Copy link
Contributor

@CGQAQ CGQAQ commented Aug 20, 2024

This PR fixes that fs.realpathSync will resolve to invalid path in some situation, specifically the input is /dev/stdin on Linux

Fixed: #54200

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Aug 20, 2024
@CGQAQ CGQAQ changed the title fix: can't execute /dev/stdin on linux (#54200) cli: fix can't execute /dev/stdin on linux (#54200) Aug 20, 2024
@juanarbol juanarbol added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 20, 2024
@juanarbol
Copy link
Member

Hey! Thanks!

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 20, 2024
@nodejs-github-bot
Copy link
Collaborator

@codecov
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.33%. Comparing base (561bc87) to head (d6063ae).
Report is 25 commits behind head on main.

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     
Files Coverage Δ
lib/fs.js 93.28% <100.00%> (+0.01%) ⬆️

... and 49 files with indirect coverage changes

@CGQAQ CGQAQ requested a review from MoLow August 20, 2024 05:55
@avivkeller avivkeller added the linux Issues and PRs related to the Linux platform. label Aug 20, 2024
@CGQAQ CGQAQ changed the title cli: fix can't execute /dev/stdin on linux (#54200) lib: fix can't execute /dev/stdin on linux (#54200) Aug 21, 2024
@CGQAQ CGQAQ changed the title lib: fix can't execute /dev/stdin on linux (#54200) lib: fix realpathSync resolving to invalid path (#54200) Aug 21, 2024
@CGQAQ CGQAQ requested a review from avivkeller August 22, 2024 01:02
Copy link
Member

@avivkeller avivkeller left a 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)

@avivkeller avivkeller added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Aug 22, 2024
@jasnell jasnell requested a review from anonrig September 8, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. linux Issues and PRs related to the Linux platform. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can't execute /dev/stdin on linux

6 participants