-
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
cpSync
symlink handling regression
#54730
Labels
fs
Issues and PRs related to the fs subsystem / file system.
regression
Issues related to regressions.
repro-exists
Issues with reproductions.
v22.x
v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
Comments
Can you provide an example that shows this bug? That'll make it easier to reproduce |
I found a reproduce step.
This is not happening in |
RedYetiDev
added
repro-exists
Issues with reproductions.
v22.x
v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
and removed
repro-exists
Issues with reproductions.
labels
Sep 3, 2024
$ mkdir a
$ touch a/some_file
$ ln -s ./a ./b
$ mkdir c
$ node -e "fs.cpSync('./b', './c', { recursive: true, dereference: true})"
|
louwers
pushed a commit
to louwers/node
that referenced
this issue
Nov 2, 2024
Co-authored-by: Jake Yuesong Li <jake.yuesong@gmail.com> PR-URL: nodejs#54732 Fixes: nodejs#54730 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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.
regression
Issues related to regressions.
repro-exists
Issues with reproductions.
v22.x
v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
Version
v22.6.0
Platform
Subsystem
fs
What steps will reproduce the bug?
override a directory with a symlink to a directory with
{dereference: true}
How often does it reproduce? Is there a required condition?
consistently
What is the expected behavior? Why is that the expected behavior?
the source symlink should be derefenced
What do you see instead?
the source symlink is not derefenced
node/src/node_file.cc
Line 3158 in 298dea0
Additional information
No response
The text was updated successfully, but these errors were encountered: