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

Adds lutimes support for Node #1357

Merged
merged 7 commits into from
May 14, 2020
Merged

Adds lutimes support for Node #1357

merged 7 commits into from
May 14, 2020

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented May 14, 2020

What's the problem this PR addresses?

We currently use lutimes, but since it's not part of the Node API (yet), the copy crashes when the source contains a symlink.

How did you fix it?

  • For future versions of Node that will support lutimes, we use it.

  • For previous versions of Node, that don't support it yet, we just ignore the failure. We don't fallback to utimes, because it wouldn't have the right behavior: the symlinked file probably got its own mtime set when it got unpacked, so there's no point reseting it now.

@arcanis arcanis merged commit 9f7b185 into master May 14, 2020
@arcanis arcanis deleted the mael/lutimes branch May 14, 2020 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant