Skip to content
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

ensureLink does not ensure the destination is hard linked to the source #870

Closed
pyrocat101 opened this issue Feb 24, 2021 · 1 comment · Fixed by #826
Closed

ensureLink does not ensure the destination is hard linked to the source #870

pyrocat101 opened this issue Feb 24, 2021 · 1 comment · Fixed by #826
Labels
Milestone

Comments

@pyrocat101
Copy link

  • Operating System: macOS 10.15.7
  • Node.js version: v12.20.1
  • fs-extra version: 5.0.0 (checked source code in master and the issue is still there)

ensureLink shortcuts if the destination path exists, without verifying if the destination file's inode is the same as the source file. This is misleading because it is not really an "ensurance".

Relevant code:

if (destinationExists) return callback(null)

@RyanZim
Copy link
Collaborator

RyanZim commented Feb 25, 2021

I think this should be fixed by #826; would appreciate review/testing there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants