-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
fs: fix existsSync for invalid symlink at win32 #30556
Closed
Closed
Conversation
This file contains 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
nodejs-github-bot
added
the
fs
Issues and PRs related to the fs subsystem / file system.
label
Nov 20, 2019
pd4d10
changed the title
fix: fs.existsSync for invalid symlink at win32
fs: fix existsSync for invalid symlink at win32
Nov 20, 2019
2 tasks
@nodejs/platform-windows @nodejs/fs |
The change looks reasonable. Rubberstamp LGTM if the test fails without this change. |
bnoordhuis
reviewed
Nov 22, 2019
lundibundi
reviewed
Nov 22, 2019
addaleax
approved these changes
Nov 30, 2019
addaleax
added
the
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
label
Nov 30, 2019
jasnell
approved these changes
Dec 1, 2019
Landed in 0e3d774 |
Merged
hyj1991
added a commit
to X-Profiler/xprofiler
that referenced
this pull request
Jan 17, 2020
hyj1991
added a commit
to X-Profiler/xprofiler
that referenced
this pull request
Jan 18, 2020
Ref: nodejs/node#30556 PR-URL: https://github.com/hyj1991/xprofiler/pull/46 Reviewed-BY: hyj1991 <yeekwanvong@gmail.com>
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
fs
Issues and PRs related to the fs subsystem / file system.
windows
Issues and PRs related to the Windows platform.
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.
Fixes: #30538
Background
#18618 uses
access
instead ofstat
to implementfs.existsSync
. Unfortunately, seems the two approaches both have some limitations at Windows:existsSync
stat
access
false
true
This PR adds a double check only at win32 platform to fix this issue.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes